freelist

Outsource of Node's internal FreeList module (originally by Ryan Dahl)

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
freelist
001.0.38 years ago8 years agoMinified + gzip package size for freelist in KB

Readme

freelist
Outsource of Node's internal FreeList module (originally by Ryan Dahl)
var fl = require("freelist");

var me = new fl("fralloc", 100, Number);

me.free(Number(100));
me.free(Number(101));

me.alloc(123)
// 100

me.alloc(123)
// 101

me.alloc(123)
// 123