Javascript LZ4

1,040 views
Skip to first unread message

PierreC

unread,
Mar 12, 2014, 5:07:51 AM3/12/14
to lz...@googlegroups.com
Hello everyone,


A quick note to mention that I have (finally) ported the LZ4 algorithms (fast compression and decompression) to Javascript. Initially only supported on NodeJS via bindings, there is now an implementation in pure Javascript that works in the browser. The API is mirrored from the LZ4 C version with one main addon (Buffer) to support binary data manipulation. Simple tests on fairly large datasets (110Mb xml)  show a reasonable performance (50% ratio in 6.5s using nodejs 0.10.26 on my laptop).

The code is located at:

The pure JS port is under build/lz4.js.

See the README for its usage.

Note that compressHC is not supported... pulls are welcomed!


Cheer,

Pierre

Yann Collet

unread,
Mar 12, 2014, 5:31:21 AM3/12/14
to lz...@googlegroups.com
Hi Pierre


Making a working version of LZ4 available directly within the browser is, I feel, a major breakthrough.
I can't count how many times this question was asked. It's now answered.
Kudo for this achievement !


PS : LZ4 homepage updated
Reply all
Reply to author
Forward
0 new messages