master
Vitaly Puzrin 2014-02-24 08:53:24 +04:00
rodzic 65134c83f8
commit 0b21c5b402
2 zmienionych plików z 9 dodań i 3 usunięć

Wyświetl plik

@ -5,11 +5,14 @@ pako - zlib port to javascript, very fast!
__Why pako is cool:__
- Almost as fast in modern browsers as C implementation (see benchmarks).
- Works in browser, you can browserify any separate component.
- Almost as fast in modern JS engines as C implementation (see benchmarks).
- Works in browsers, you can browserify any separate component.
- Both Sync & streamable (for big blobs) interfaces.
- It's fresh - ports the latest zlib version (now 1.2.8), results are binary equal.
This project was done to understand how fast JS can be and is it necessary to
develop native C modules for CPU-intensive tasks. Enjoy the result!
__Benchmarks:__
```
@ -28,6 +31,9 @@ node v0.11, 10mb sample:
deflate-zlib x 14.17 ops/sec ±3.34% (64 runs sampled)
```
If you doubt, that zlib is slow because of marshalling, try benchmark with `level 0`.
You will see, that node bindings don't add noticeable slowdown.
__Install:__
node.js:

Wyświetl plik

@ -1585,7 +1585,7 @@ exports.deflateInit2 = deflateInit2;
exports.deflateReset = deflateReset;
exports.deflate = deflate;
exports.deflateEnd = deflateEnd;
exports.deflate_info = 'pako deflate';
exports.deflateInfo = 'pako deflate (from Nodeca project)';
/* Not implemented
exports.deflateSetDictionary = deflateSetDictionary;