Closed deckar01 closed 10 years ago
Thanks for being patient with me : )
Thanks again. What I love about this is that I can make a lot of positive changes elsewhere in this project. I was hesitant to include this package as a dep in so many other packages because I knew that I would be dragging along bigi
. Not anymore!
Just for fun I decided to write a benchmark script in node to more accurately capture the performance in node.
With bigi
:
load overhead: 4ms
encode: 34,063 ops/sec
decode: 100,719 ops/sec
Without bigi
load overhead: 1ms
encode: 212,121 ops/sec
decode: 218,750 ops/sec
Damn, that's quite the performance boost :)
Replace
bigi
with pure js. Optimize byte operations with bitwise shifts.Implements #2.