kopia lustrzana https://github.com/viljoviitanen/pako
readme update
rodzic
65134c83f8
commit
0b21c5b402
10
README.md
10
README.md
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue