[Lldb-commits] [PATCH] D114627: [lldb] add new overload for SymbolFile::FindTypes that accepts a scope
Lasse Folger via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 30 23:26:27 PST 2021
lassefolger added a comment.
In D114627#3162109 <https://reviews.llvm.org/D114627#3162109>, @shafik wrote:
> Is there a specific use case that motivated this feature?
The motivation is performance. If there are many (>1000) types with the same base name this implementation performs much better than the current implementation.
This is mostly important for the first access (because later ones use the caches results). In our scenarios it reduced the time for the first access from 86s to 6s and from 12s to 2s. And the access for subsequest accesses from 0.15 to 0.08 and 0.12 to 0.06.
The primary reason is that Type::GetQualifiedName is executed for every type with the same basename when the types are filtered at the end. This triggers type completion each type which is very expensive.
I'm still working on this commit.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114627/new/
https://reviews.llvm.org/D114627
More information about the lldb-commits
mailing list