Speed up dict_hash
authorTom Tromey <tom@tromey.com>
Wed, 1 Nov 2017 17:15:06 +0000 (11:15 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 9 Nov 2017 15:31:40 +0000 (08:31 -0700)
commit7e8835c5f44931d02ecd8c8ba3d167e891981d24
tree594450b718b0bf6f1243d6d037a25c5a2f51838a
parentb6b9ca0c3ec9589d0dd40b2b86ba748a361b48eb
Speed up dict_hash

This speeds up dict_hash a bit, by moving the "TKB" check into the
switch in the loop.

For "gdb -nx -readnow -batch gdb", this improves the time from ~9.8s
before to ~8.5s afterward.

gdb/ChangeLog
2017-11-09  Tom Tromey  <tom@tromey.com>

* dictionary.c (dict_hash): Move "TKB" check into the "switch".
gdb/ChangeLog
gdb/dictionary.c
This page took 0.024741 seconds and 4 git commands to generate.