1
0
forked from 0ad/0ad
0ad/binaries/data
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
..
config Fixes Vulkan hazards reported by validation layers. 2023-06-05 16:32:18 +00:00
l10n Update Transifex configurations for the new API using the tx migrate command specified on https://github.com/transifex/cli/releases 2023-04-27 13:06:30 +00:00
mods Speed up timer update by using Map.forEach 2023-06-13 15:57:18 +00:00
tests Some more random random map script unit tests and ASSERT functions, refs #4827. 2020-01-29 18:52:48 +00:00
tools Add more animations to the atlas drop-down list and delete non-existent animations 2020-07-27 07:36:38 +00:00