[PATCH] D61104: [clang][ASTContext] Try to avoid sorting comments for code completion
Jan Korous via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 24 16:42:35 PDT 2019
jkorous created this revision.
jkorous added reviewers: gribozavr, arphaman.
Herald added subscribers: cfe-commits, dexonsmith, mgrang.
Herald added a project: clang.
For large number of deserialized comments (~100k) the way how we try to attach them to declaration in completion comments is too expensive.
Currently we're sorting all the comments by source location (expensive) and later bisecting them for every interesting declaration to find the closest comment before and after the declaration documentation comment.
This patch tries to just iterate over unsorted comments and see if there's any of the decls we're interested in nearby.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 23987 bytes
Desc: not available
More information about the cfe-commits