diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2025-03-16 22:38:22 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2025-03-17 12:30:18 -0400 |
commit | cc2f268d14eafcf446c3f26d031a40f823b787fc (patch) | |
tree | 786ecc214853c0aed87e2cebfa3c65caa05480bf /gdb/osabi.c | |
parent | 06c982e72b097492b937153b809a4c9a3ef3c6f5 (diff) | |
download | binutils-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/osabi.c')
0 files changed, 0 insertions, 0 deletions