memorypool
v1.0.0
Published
JavaScript Memory Pool implementation
Downloads
17
Readme
MemoryPool
JavaScript Memory Pool implementation
Install
$ npm install memorypoolUsage
const MemoryPool = require('memorypool');
const arrayPool = new MemoryPool(Array);
let numbers = arrayPool.allocate();
let strings = arrayPool.allocate();
arrayPool.free(numbers);
arrayPool.free(strings);
// reuse Array instance from object pool
let bools = arrayPool.allocate();License
MIT: http://1000ch.mit-license.org
