Benzinga / lz4js

Lz4 for the browser.
89 stars 21 forks source link

LZ4 high compression #5

Open sky93 opened 6 years ago

sky93 commented 6 years ago

How to do high compression (-9) when using compress function?

jchv commented 6 years ago

So, LZ4-HC is actually an entirely different search algorithm to normal LZ4 compression, which (at least here) just uses a very simplistic matching algorithm. We would need to port the LZ4-HC search algorithm to be able to support it, unfortunately. Pull requests welcome.

L3P3 commented 1 year ago

But LZ4-HC decompression is supported, right?

So it would be a great way to pack stuff at bundle time and decompress it in the client.

jchv commented 1 year ago

Believe so. There might be better lz4 libraries out there nowadays though, depending on your use case.