aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-exp.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2025-03-16 22:38:22 -0400
committerSimon Marchi <simon.marchi@efficios.com>2025-03-17 12:30:18 -0400
commitcc2f268d14eafcf446c3f26d031a40f823b787fc (patch)
tree786ecc214853c0aed87e2cebfa3c65caa05480bf /gdb/rust-exp.h
parent06c982e72b097492b937153b809a4c9a3ef3c6f5 (diff)
downloadbinutils-cc2f268d14eafcf446c3f26d031a40f823b787fc.zip
binutils-cc2f268d14eafcf446c3f26d031a40f823b787fc.tar.gz
binutils-cc2f268d14eafcf446c3f26d031a40f823b787fc.tar.bz2
gdb/dwarf: use gdb::unordered_set for seen_names
Direct replacement of an htab with a gdb::unordered_set. Using a large test program, I see a small but consistent performance improvement. The "file" command time goes on average from 7.88 to 7.73 seconds (~2%). To give a rough estimate of the scale of the test program, the 8 seen_names hash tables (one for each worker thread) had between 173846 and 866961 entries. Change-Id: I0157cbd04bb55338bb1fcefd2690aeef52fe3afe Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/rust-exp.h')
0 files changed, 0 insertions, 0 deletions