floydpink/lzwCompress.js

Docs: Brotli Doesn't Compress lzw Output Effectively

nickreese opened this issue · 0 comments

Was running a quick test of different compression libraries to compress JSON objects. Due to the way that lzwCompress uses numbers to represent the JSON, Brotli can't compress it.

In our case we had a ~500kb JSON object we needed to write to HTML. lzw reduced the size by ~42% but when comparing the lzw page vs the regular page, the lzw page was 20% larger with Brotli compression.

Killer library (really quiet impressed) but was bummed to see it didn't play well with Brotli.

May be worth mentioning in the docs.