Create a correctly-sized demangled names hashtable
authorChristian Biesinger <cbiesinger@google.com>
Mon, 18 Nov 2019 22:37:31 +0000 (16:37 -0600)
committerChristian Biesinger <cbiesinger@google.com>
Fri, 22 Nov 2019 17:42:41 +0000 (11:42 -0600)
commitf8bab2d61d84b4e122ca667c4e458cd2ca29e3b6
tree05b3a9dc41b308d031b3ed2b084a0f52fecf2001
parent85e7588dc4b191326f90d4e2358566d9cc14242a
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
gdb/ChangeLog
gdb/symtab.c
This page took 0.024488 seconds and 4 git commands to generate.