aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/index-cache.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-05-22 15:20:06 -0600
committerTom Tromey <tom@tromey.com>2022-04-12 09:31:16 -0600
commit7e752790937c73d8ca61dc207f8e1e609d5644c0 (patch)
tree04d0298e15daf561d23ae6cced446cd58fd507ed /gdb/dwarf2/index-cache.c
parent46114cb7be362cae03025d65f1b3bcbb1c7e8df0 (diff)
downloadgdb-7e752790937c73d8ca61dc207f8e1e609d5644c0.zip
gdb-7e752790937c73d8ca61dc207f8e1e609d5644c0.tar.gz
gdb-7e752790937c73d8ca61dc207f8e1e609d5644c0.tar.bz2
"Finalize" the DWARF index in the background
After scanning the CUs, the DWARF indexer merges all the data into a single vector, canonicalizing C++ names as it proceeds. While not necessarily single-threaded, this process is currently done in just one thread, to keep memory costs lower. However, this work is all done without reference to any data outside of the indexes. This patch improves the apparent performance of GDB by moving it to the background. All uses of the index are then made to wait for this process to complete. In our ongoing example, this reduces the scanning time on gdb itself to 0.173937 (wall). Recall that before this patch, the time was 0.668923; and psymbol reader does this in 1.598869. That is, at the end of this series, we see about a 10x speedup.
Diffstat (limited to 'gdb/dwarf2/index-cache.c')
0 files changed, 0 insertions, 0 deletions