(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%.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user