diff options
author | rubidium <rubidium@openttd.org> | 2009-10-21 19:42:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-21 19:42:49 +0000 |
commit | 547677a782f38346e80f3258c26c128f781c4d33 (patch) | |
tree | f3c5d51ef2f401391e47485af8ade5e974042eca /src/cargopacket.h | |
parent | 1528b64a68f3144b9b321efefb22800a52e64dd4 (diff) | |
download | openttd-547677a782f38346e80f3258c26c128f781c4d33.tar.xz |
(svn r17840) -Codechange: use the new pool's concepts (caching + not zeroing). Improves average CargoPacket con/destruction time by ~20%, MoveTo/Append by 5-10% and application performance by up to 2%.
Diffstat (limited to 'src/cargopacket.h')
-rw-r--r-- | src/cargopacket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargopacket.h b/src/cargopacket.h index 8f4663e79..64fd7145a 100644 --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -25,7 +25,7 @@ typedef uint32 CargoPacketID; struct CargoPacket; /** Type of the pool for cargo packets. */ -typedef Pool<CargoPacket, CargoPacketID, 1024, 1048576> CargoPacketPool; +typedef Pool<CargoPacket, CargoPacketID, 1024, 1048576, true, false> CargoPacketPool; /** The actual pool with cargo packets */ extern CargoPacketPool _cargopacket_pool; |