Especially in the lifeform lookup code an std::unordered_map could yield performance advantages. Not entirely sure whether or not being ordered is implicitly used somewhere.
Nevertheless most of the time playerId is looked up. Since it was inserted first, there could even be a performance decrease if swapping map to unordered_map.
Especially in the lifeform lookup code an std::unordered_map could yield performance advantages. Not entirely sure whether or not being ordered is implicitly used somewhere.
Nevertheless most of the time
playerId
is looked up. Since it was inserted first, there could even be a performance decrease if swapping map to unordered_map.