disassembler: keep a per-fixup-type list for speedup
commitd161bdb088b5aa1caae7e0f532f320c66885826a
authorrofl0r <rofl0r@users.noreply.github.com>
Sat, 15 Jun 2019 22:45:41 +0000 (15 23:45 +0100)
committerrofl0r <rofl0r@users.noreply.github.com>
Sat, 15 Jun 2019 22:48:48 +0000 (15 23:48 +0100)
tree8fced0f9783307b835f4aa03d25d707d0dbc4f73
parentf74b790abd19505d2e82942b5163e0d809b60138
disassembler: keep a per-fixup-type list for speedup

additionally to the traditional mixed fixup list, we
now keep a list per fixup type.
the old mixed list is kept because there's some code using it
in a sequential way (the one using "currfixup" var), which is not
that straight-forward to modify.

this reduces total runtime by about 10%.
the worst offender, find_fixup_for_globaldata() improved from
17% to 8% cpu usage, whereas has_datadata_fixup() practically
vanished completely from perf reports (previous: 12.5%).
Script.c
Script_internal.h