primitivemap

Fast int->int and int->long map data structures using the Google sparsehash implementation. Allows large data structures of this type to be stored off-heap.

npm install primitivemap
4 downloads in the last week
16 downloads in the last month

Fast int->int and int->long map data structures using the Google sparsehash implementation. Allows large data structures of this type to be stored off-heap.

Note that this is slower than using native JS structures - about 7 times slower for reads, and 1.2 times slower for writes.

npm loves you