diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-10-10 17:59:15 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-10-10 17:59:15 +0000 |
commit | 418893d8f2f33693c0aedf8fcde63167a8a3101c (patch) | |
tree | b57dd4197833dd77775e31c5b8bc4918864999c9 /lldb/packages/Python/lldbsuite/test/python_api/sbdata | |
parent | 715bfa4ef800d8aacc150f81ab3838332e02b08f (diff) | |
download | bcm5719-llvm-418893d8f2f33693c0aedf8fcde63167a8a3101c.tar.gz bcm5719-llvm-418893d8f2f33693c0aedf8fcde63167a8a3101c.zip |
Speed up accelerator table lookups
When debugging a large program like clang and doing "frame variable
*this", the ValueObject pretty printer is doing hundreds of scoped
FindTypes lookups. The ones that take longest are the ones where the
DWARFDeclContext ends in something like ::Iterator which produces many
false positives that need to be filtered out *after* extracting the
DIEs. This patch demonstrates a way to filter out false positives at
the accerator table lookup step.
With this patch
lldb clang-10 -o "b EmitFunctionStart" -o r -o "f 2" -o "fr v *this" -b -- ...
goes (in user time) from 5.6s -> 4.8s
or (in wall clock) from 6.9s -> 6.0s.
Differential Revision: https://reviews.llvm.org/D68678
llvm-svn: 374401
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/sbdata')
0 files changed, 0 insertions, 0 deletions