[Lldb-commits] [PATCH] D14088: Some minor improvements on the symtab parsing code

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 26 11:35:36 PDT 2015


tberghammer created this revision.
tberghammer added a reviewer: clayborg.
tberghammer added a subscriber: lldb-commits.

Some minor improvements on the symtab parsing code

* Remove an unnecessary re-computation on arch spec from the ELF file
* Use a local cache to optimize name based section lookup in symtab
  parsing
* Optimize C++ method basename validation with replacing a regex with
  hand written code

These modifications reduce the time required to parse the symtab from
large applications by ~25% (tested with LLDB as inferior)

http://reviews.llvm.org/D14088

Files:
  source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
  source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14088.38445.patch
Type: text/x-patch
Size: 6085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151026/fd45f0b2/attachment.bin>


More information about the lldb-commits mailing list