toni
Advanced tools
Comparing version 0.2.0 to 0.2.1
/* | ||
* Toni, a simple and efficient bitmap implementation for integer sets, | ||
* using bitwise operations and a Buffer. Modifying a single bit instead of an | ||
* entire byte, obviously saves 87.5% of Buffer space, with low performance loss. | ||
* entire byte, obviously saves 87.5% of Buffer space, but it also implies a gain | ||
* of ~30% in performances for accessing values, when it was used with big integer | ||
* ranges. | ||
* | ||
@@ -6,0 +8,0 @@ * http://en.wikipedia.org/wiki/Bit_array |
{ | ||
"name": "toni" | ||
, "version": "0.2.0" | ||
, "description": "Toni, a simple and efficient bitmap implementation for integer sets, using bitwise operations and a Buffer. Modifying a single bit instead of an entire byte, obviously saves 87.5% of Buffer space, with low performance loss." | ||
, "version": "0.2.1" | ||
, "description": "Toni, a simple and efficient bitmap implementation for integer sets, using bitwise operations and a Buffer. Modifying a single bit instead of an entire byte, obviously saves 87.5% of Buffer space, but it also implies a gain of ~30% in performances, for accessing values, when it was used with big integer ranges." | ||
, "homepage": "https://github.com/rootslab/toni" | ||
@@ -16,2 +16,3 @@ , "private": false | ||
," lookup table" | ||
, "buffer" | ||
, "util" | ||
@@ -34,2 +35,3 @@ ] | ||
"test": "node test/run.js" | ||
, "bench": "bash bench/run.sh" | ||
} | ||
@@ -36,0 +38,0 @@ , "license": "MIT" |
@@ -20,3 +20,4 @@ ### Toni | ||
> __Toni__, a simple and efficient bitmap implementation for integer sets, using bitwise operations and a Buffer. | ||
> Modifying a single bit instead of an entire byte, obviously saves 87.5% of Buffer space, with low performance loss. | ||
> Modifying a single bit instead of an entire byte, obviously saves __87.5%__ of Buffer space, but it also | ||
> implies a gain of __~30%__ in performances, for accessing values, when it was used with big integer ranges. | ||
@@ -43,3 +44,11 @@ > See [BitArray](http://en.wikipedia.org/wiki/Bit_array). | ||
``` | ||
###Run Benchmarks | ||
> run benchmarks for __Toni__. | ||
```bash | ||
$ cd toni/ | ||
$ npm run bench | ||
``` | ||
###Constructor | ||
@@ -46,0 +55,0 @@ |
27422
14
389
140