diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-11-18 16:37:31 -0600 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-11-22 11:42:41 -0600 |
commit | f8bab2d61d84b4e122ca667c4e458cd2ca29e3b6 (patch) | |
tree | 05b3a9dc41b308d031b3ed2b084a0f52fecf2001 /gdb/m32c-tdep.c | |
parent | 85e7588dc4b191326f90d4e2358566d9cc14242a (diff) | |
download | gdb-f8bab2d61d84b4e122ca667c4e458cd2ca29e3b6.zip gdb-f8bab2d61d84b4e122ca667c4e458cd2ca29e3b6.tar.gz gdb-f8bab2d61d84b4e122ca667c4e458cd2ca29e3b6.tar.bz2 |
Create a correctly-sized demangled names hashtable
If we have a minsym count, we know the demangled names hashtable will
be at least that big. So use that count to size it, so we don't
have to resize/rehash it as much.
This is a 6% improvement in minsym loading time.
2019-11-22 Christian Biesinger <cbiesinger@google.com>
* symtab.c (create_demangled_names_hash): Use per_bfd->
minimal_symbol_count for computing the initial size, if greater
than our default size.
Change-Id: I1f074d38e1d90af58705ec852f90c84cc034cd2e
Diffstat (limited to 'gdb/m32c-tdep.c')
0 files changed, 0 insertions, 0 deletions