From 0b21c5b4027b403be810297fdf60ab8cdac649f7 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Mon, 24 Feb 2014 08:53:24 +0400 Subject: [PATCH] readme update --- README.md | 10 ++++++++-- lib/zlib/deflate.js | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 040b085..381d338 100644 --- a/README.md +++ b/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: diff --git a/lib/zlib/deflate.js b/lib/zlib/deflate.js index 2686848..97a2f39 100644 --- a/lib/zlib/deflate.js +++ b/lib/zlib/deflate.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;