[debugger] Improve indexing performance.
Performance improves by ~7% by optimizing allocation of vectors and strings iin module_symbol_index and module_symbol_index_node before doing the indexing. Performance improves by ~15% by optimizing the allocation of the "seen_attrs" vector in the DwarfDieDecoder. This was measured by running the normall-commented-out test ModuleSymbolIndex.BenchmarkIndexing and giving it an ELF binary of a fully symbolized release build of Chrome. There should be no functional change. Change-Id: I107a3d651ac05e9b2959da88a06e463173eae199
Showing
- src/developer/debug/zxdb/symbols/dwarf_die_decoder.cc 7 additions, 8 deletionssrc/developer/debug/zxdb/symbols/dwarf_die_decoder.cc
- src/developer/debug/zxdb/symbols/dwarf_die_decoder.h 8 additions, 7 deletionssrc/developer/debug/zxdb/symbols/dwarf_die_decoder.h
- src/developer/debug/zxdb/symbols/module_symbol_index.cc 11 additions, 5 deletionssrc/developer/debug/zxdb/symbols/module_symbol_index.cc
- src/developer/debug/zxdb/symbols/module_symbol_index_node.cc 7 additions, 0 deletionssrc/developer/debug/zxdb/symbols/module_symbol_index_node.cc
- src/developer/debug/zxdb/symbols/module_symbol_index_node.h 7 additions, 1 deletionsrc/developer/debug/zxdb/symbols/module_symbol_index_node.h
Loading
Please register or sign in to comment