Apple Open-Sources its Compression Algorithm LZFSE
11–20 of 219 posts
Re: Apple Open-Sources its Compression Algorithm LZFSE
#12If you want to see some crazy C code, check out this file from the GitHub repo: https://github.com/lzfse/lzfse/blob/master/src/lzvn_encode_b...
Re: Apple Open-Sources its Compression Algorithm LZFSE
#13I just quickly tested it, in terms of highest compression ratio it still does not beat xz, e.g. `tar -cf -FILE | xz -c9e > FILE.tar.xz` https://blog.benmarten.me/2016/04/01/Compress-Files-With-Hig...
Re: Apple Open-Sources its Compression Algorithm LZFSE
#14I just quickly tested it, in terms of highest compression ratio it still does not beat xz, e.g. `tar -cf -FILE | xz -c9e > FILE.tar.xz` https://blog.benmarten.me/2016/04/01/Compress-Files-With-Hig...
Re: Apple Open-Sources its Compression Algorithm LZFSE
#15If you want to see some crazy C code, check out this file from the GitHub repo: https://github.com/lzfse/lzfse/blob/master/src/lzvn_encode_b...
if (D == D_prev) {
if (L == 0) {
*q++ = 0xF0 + (x + 3); // XM!
} else {
*q++ = (L >8 in 0..5
*q++ = (D >> 8) + (L = (1 34) {
// Long dist
*q++ = (L > 2) + (L Re: Apple Open-Sources its Compression Algorithm LZFSE
#16I just quickly tested it, in terms of highest compression ratio it still does not beat xz, e.g. `tar -cf -FILE | xz -c9e > FILE.tar.xz` https://blog.benmarten.me/2016/04/01/Compress-Files-With-Hig...
Their goal seems to have been to be at least as good as zlib at compressing stuff using less energy and doing it faster (that often correlates quite well with energy use on modern CPUs, as it allows them to drop to low energy states faster)
Re: Apple Open-Sources its Compression Algorithm LZFSE
#17The InfoQ post mentions xcodebuild, but there is also a Makefile. I really appreciate the presence of a no-nonsense Makefile. No autoconf, no pkgconfig, just plain and simple make. Also, because nobody mentioned it: yes, it compiles on Linux out of the box.
Re: Apple Open-Sources its Compression Algorithm LZFSE
#18Re: Apple Open-Sources its Compression Algorithm LZFSE
#19Re: Apple Open-Sources its Compression Algorithm LZFSE
#20https://news.ycombinator.com/item?id=11944975