diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-11-18 19:52:18 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-11-18 19:52:18 +0100 |
commit | 681022fb9c6099f187397e70ecc74d90ac03947b (patch) | |
tree | e1efe90375ebc572e98f5118b86612c7c1b77dbd /tests/logs/eod-specs/Untamed-20220307.zevtc | |
parent | 817d10634f54631004dc0ac9bee04e22fe4b46b6 (diff) | |
download | evtclib-681022fb9c6099f187397e70ecc74d90ac03947b.tar.gz evtclib-681022fb9c6099f187397e70ecc74d90ac03947b.tar.bz2 evtclib-681022fb9c6099f187397e70ecc74d90ac03947b.zip |
speed up Log::is_boss
It is way cheaper to retrieve the correct agent first (especially with
the faster agent_by_addr) and then check if it is a boss, rather than
iterating over all bosses (which iterates through all characters), and
then iterate through the found bosses to check if any address matches.
The new code is a bit longer (and doesn't combine the functions as
nicely), but it is still readable and more performant - which is more
important.
Diffstat (limited to 'tests/logs/eod-specs/Untamed-20220307.zevtc')
0 files changed, 0 insertions, 0 deletions