Object Pool
See: 4-improved.js
Signature poolify(factory, min, norm, max)
factory- call to instantiate pool itemmin- minimum amount to allocate newnorm- preallocated amountmax- maximum amount to limit pool
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSee: 4-improved.js
Signature poolify(factory, min, norm, max)
factory - call to instantiate pool itemmin - minimum amount to allocate newnorm - preallocated amountmax - maximum amount to limit pool