News for hackers. Stuff that matters.
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by orev on Monday December 13, 2021 @12:53PM (#29542155)
Contrary to popular belief (sadly, even among the tech crowd here), people use computers for more than just web stuff.
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by 1vuio0pswjnm7 on Monday December 13, 2021 @03:23PM (#29544126)
IIRC, in a recent thread about zstd, someone claimed brotli was faster. Perhaps one needs to look at whether the sample being compressed is web stuff.
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by jeffbee on Monday December 13, 2021 @03:27PM (#29544172)
If you’re too busy to check yourself, the “squash compression benchmark” page has results for dozens of codecs and different inputs.
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by skyde on Monday December 13, 2021 @01:03PM (#29542290)
Brotli is not just for Web stuff.
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by duskwuff on Monday December 13, 2021 @01:37PM (#29542736)
Brotli is heavily tuned for "web stuff". It's literally got a built-in dictionary full of commonly used HTML fragments:

https://gist.github.com/klauspost/2900d5ba6f9b65d69c8e

Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by sebazzz on Monday December 13, 2021 @02:38PM (#29543490)
Shoot me, works well for the average desktop (=Electron) application then.
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by adgjlsfhk1 on Monday December 13, 2021 @03:01PM (#29543831)
Electron is just web stuff.
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by throwthere on Monday December 13, 2021 @07:45PM (#29546753)
Sure but it actually benchmarks well broadly maybe despite its heavy web optimizations.
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by orev on Monday December 13, 2021 @01:05PM (#29542333)
Sure. In theory. But every other response to this comment are clearly talking about web stuff, and in practice brotli is really only used for web stuff.
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by jeffbee on Monday December 13, 2021 @01:28PM (#29542632)
I don't know what's theoretical about it. There are Debian packages for brotli and it just behaves like a stdio codec, same as the `xz` command.
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by masklinn on Monday December 13, 2021 @01:44PM (#29542817)
Brotli has a static dictionary heavily geared towards web formats, and there really is no reason to use brotli outside of web stuff: the point of brotli is that it has browser support and does 15~20% better than gzip.

It's not bad per-se, but if you're not constrained to the web zstd will have a better compression ratio at every throughput (and better throughput at every compression ratio), and if you want maximum compression period it's not close to competing with LZMA-based formats (xz, lzip).

Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by skyde on Monday December 13, 2021 @01:46PM (#29542845)
I think he mean is less popular (like zstandard and lz4) compared to zlib and LZMA and BZip2. this is unfortunate because Brotli and Zstandard compress much better than zLib and LZ4 and decompress much faster than zlib lzma and LZ4
Re:Show HN: 10-40% faster LZMA decoder using x86 CMOVcc by orev on Tuesday December 14, 2021 @12:55PM (#29554784)
I’m using the phrase “in theory” colloquially, which means something like “sure, you could technically use it that way, but nobody really does/it’s very rare”.