1.0.0 • Published 9 months ago

@forgelab/arena v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Arena

NPM Version

A javascript memory pool based on Float32Array that is very easy to use and extremely fast, with minimal overhead for each allocation or deletion and no garbage collection (GC) overhead.

Example

import { arena } from '@forgelab/arena';

const memory = arena();
const p1 = memory.create([1, 2, 3]);
p1.update([4, 5]);
p1.update([6, 7, 8, 9]);
const p2 = p1.clone();
console.log(p2.value);
1.0.0

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago