aboutsummaryrefslogtreecommitdiff
path: root/tests/logs/cms/adina.zevtc
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-11-18 19:44:06 +0100
committerDaniel Schadt <kingdread@gmx.de>2021-11-18 19:46:52 +0100
commit817d10634f54631004dc0ac9bee04e22fe4b46b6 (patch)
tree0fab76ee5e06ceda33f68e186aae49eee1a5b021 /tests/logs/cms/adina.zevtc
parentae884762ca300b265355afb6aeaed5010352f167 (diff)
downloadevtclib-817d10634f54631004dc0ac9bee04e22fe4b46b6.tar.gz
evtclib-817d10634f54631004dc0ac9bee04e22fe4b46b6.tar.bz2
evtclib-817d10634f54631004dc0ac9bee04e22fe4b46b6.zip
speed up Log::agent_by_addr
We know that the way we construct the Log, the agents are always sorted by their address. This invariant cannot be broken, as the only way to construct a Log is in evtclib itself, and there is no way to obtain a mutable view on the agent vector or change the address of an agent. Since Log::agent_by_addr is used by other functions, this speedup (even if it is small) can show in a lot of different places. Note that if we change the interface of Log in the future to allow creating logs from different sources that processing::process, we need to make sure we adjust this function.
Diffstat (limited to 'tests/logs/cms/adina.zevtc')
0 files changed, 0 insertions, 0 deletions