memory-allocator
Advanced tools
+1
-0
| import MemoryAllocator from './MemoryAllocator.js'; | ||
| export default MemoryAllocator; | ||
| export { default as MemoryRef } from './MemoryRef.js'; |
+1
-1
| { | ||
| "name": "memory-allocator", | ||
| "author": "Warriors Life", | ||
| "version": "0.0.3", | ||
| "version": "0.1.0", | ||
| "description": "Simple ArrayBuffer memory allocator", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
+2
-2
| # memory-allocator | ||
| A simple ArrayBuffer memory allocator for JS. | ||
| Not to be confused with the [`memory-pool`](https://www.npmjs.com/package/memory-pool) package, which removes the overhead of object creation by maintaining a pool of them and modifying their properties. | ||
| Not to be confused with the [`memory-pool`](https://www.npmjs.com/package/memory-pool) package, which removes the overhead of object creation by maintaining a pool of them and modifying their properties (see also [`PrimitivePool`](https://github.com/gkjohnson/three-mesh-bvh/blob/master/src/utils/PrimitivePool.js)). | ||
@@ -13,3 +13,3 @@ ## License | ||
| # Documentation | ||
| The package exports `MemoryAllocator` class as default. | ||
| The package exports `MemoryAllocator` class as the default and also exports `MemoryRef` class. | ||
@@ -16,0 +16,0 @@ ## class MemoryAllocator |
6719
3.18%114
0.88%