1
0
forked from 0ad/0ad
0ad/binaries
wraitii 3991c5c857 Speed up timer update by using Map.forEach
According to JIT profiling on SM 115, using ForEach is faster than
iterating.
This is a micro optimisation, maybe 2% faster for OnUpdate, which means
we might see an overall improvement < 0.4%.

The reason this is faster here is that Iterating needs to construct an
array to store the result, whereas ForEach just uses the values
directly. This means this probably doesn't apply to iterating if we
don't need both the key/value pair.

Differential Revision: https://code.wildfiregames.com/D5010
This was SVN commit r27674.
2023-06-13 15:57:18 +00:00
..
data Speed up timer update by using Map.forEach 2023-06-13 15:57:18 +00:00
logs
system Allow starting by command with sandbox AI. 2023-05-10 15:34:38 +00:00