aboutsummaryrefslogtreecommitdiff
path: root/opcodes/aarch64-tbl.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-11-02 12:48:44 -0600
committerTom Tromey <tom@tromey.com>2017-11-09 08:31:40 -0700
commite793c052f9d9548442a46817998a46cbca4ccb70 (patch)
tree18fe42c0649c4b6290b6dc6c27d4efe0d67c08c3 /opcodes/aarch64-tbl.h
parent7e8835c5f44931d02ecd8c8ba3d167e891981d24 (diff)
downloadgdb-e793c052f9d9548442a46817998a46cbca4ccb70.zip
gdb-e793c052f9d9548442a46817998a46cbca4ccb70.tar.gz
gdb-e793c052f9d9548442a46817998a46cbca4ccb70.tar.bz2
Simplify the psymbol hash function
This patch simplifies the psymbol_hash function, by changing it not to examine the contents of the symbol's name. This change just mirrors what psymbol_compare already does -- it is checking for name equality, which is ok because symbol names are interned in symbol_set_names. This change speeds up psymbol reading. "gdb -nx -batch gdb" previously took ~1.8 seconds on my machine, and with this patch it now takes ~1.7 seconds. gdb/ChangeLog 2017-11-09 Tom Tromey <tom@tromey.com> * psymtab.c (psymbol_hash): Do not hash string contents. (psymbol_compare): Add comment.
Diffstat (limited to 'opcodes/aarch64-tbl.h')
0 files changed, 0 insertions, 0 deletions