]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: use gdb::unordered_set for seen_names
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 17 Mar 2025 02:38:22 +0000 (22:38 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 17 Mar 2025 16:30:18 +0000 (12:30 -0400)
commitcc2f268d14eafcf446c3f26d031a40f823b787fc
tree786ecc214853c0aed87e2cebfa3c65caa05480bf
parent06c982e72b097492b937153b809a4c9a3ef3c6f5
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>
gdb/dwarf2/cooked-index.c