Re:Apple Open-Sources its Compression Algorithm LZFSE
by espadrine on Friday July 08, 2016 @03:48AM
(#12054103)
> Worryingly, the two versions also produce different files
That is actually pretty common. I would guess the version you have in macOS is an older version. They may have tweaked the algorithm to deliver slightly better compression at the expense of speed, which is always the tradeoff in this field.
On the other hand, I would not be surprised if they prepared special tweaks in their internal version to better support arm64. Strategically, Apple seems to believe that people will stick with building for their App Store if they are pushed to write non-cross-platform code.
(Oddly enough, LZFSE/LZVN seems well-suited for file system compression on hard drives, but here again, Yann Collet wins with its LZ4's superior compression speeds, which impact write speeds.)
Re:Apple Open-Sources its Compression Algorithm LZFSE
by eln1 on Friday July 08, 2016 @01:29AM
(#12053697)
The difference is size probably come from suboptimalities which were repaired after open-sourcing: http://encode.ru/threads/2221-LZFSE-New-Apple-Data-Compressi...
The difference in speed is more surprising, it could come from using a different compiler - there can be really large differences.
Worryingly, the two versions also produce different files (12,209,496 bytes for the GitHub code, 12,234,159 bytes for the library on Mac OS X 10.11.5), but they can decompress each others files and produce the original file.