aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-11-18 16:37:31 -0600
committerChristian Biesinger <cbiesinger@google.com>2019-11-22 11:42:41 -0600
commitf8bab2d61d84b4e122ca667c4e458cd2ca29e3b6 (patch)
tree05b3a9dc41b308d031b3ed2b084a0f52fecf2001 /gdb/compile
parent85e7588dc4b191326f90d4e2358566d9cc14242a (diff)
downloadgdb-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/compile')
0 files changed, 0 insertions, 0 deletions