This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ObjectPool is a type building macro to create array-of-structure or structure-of-array pools. | |
* With the intention being to improve access performance, both in CPU cache coherence and by avoiding the GC | |
* | |
* This implementation is a minimal working proof of concept | |
* | |
* Improvements you may want to make | |
* - Support deallocation of instances and space reclaiming | |
* - Replace haxe.io.Bytes because field access has overhead | |
* |