1.0.0 • Published 8 years ago
memorypool v1.0.0
MemoryPool
JavaScript Memory Pool implementation
Install
$ npm install memorypool
Usage
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
1.0.0
8 years ago