6 ms·
If you're going for decoding speed wouldn't you be using brotli anyway? At a given compression ratio brotli is ~4x faster on decode path, and they are similar o
by jeffbee 5y ago
If you're going for decoding speed wouldn't you be using brotli anyway? At a given compression ratio brotli is ~4x faster on decode path, and they are similar on the encode path.
Your corpus may vary etc etc.
- pletnes 5y agoLinux distros often ship xz out of the box. I’ve never seen brotli in the wild. YMMV of course - I am sure there are exceptions. I’ve used brotli myself, but only as it’s included in some parquet read/write libs.
- peter-m80 5y agocloudflare uses brotli (not sure if optional or by default)
- stillicidious 5y agoProbably 10-40% of what your browser is served nowadays is brotli, it's in Chrome so all the major CDNs support it by default
- pletnes 5y agoI’m sure you’re right, but files-on-disk is another story. I was referring to the latter.
- ByTheBook 5y agoJpeg-XL makes use of Brotli, and once it hits 1.0 it will most likely be turned on by default in browsers and thus you will probably see a lot of jxl in the wild, particularly since it provides lossless recompression to existing jpeg files with ~20% smaller size as a result.
- throwaway1777 5y agoIt’s definitely in use by Meta and Google.
- GordonS 5y agoI'm not the OP, but I took their comment to mean "on the command line".
- deleted 5y ago[deleted]
- orev 5y agoContrary to popular belief (sadly, even among the tech crowd here), people use computers for more than just web stuff.
- skyde 5y agoBrotli is not just for Web stuff.
- duskwuff 5y agoBrotli 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 https://gist.github.com/klauspost/2900d5ba6f9b65d69c8e
- sebazzz 5y agoShoot me, works well for the average desktop (=Electron) application then.
- adgjlsfhk1 5y agoElectron is just web stuff.
- throwthere 5y agoSure but it actually benchmarks well broadly maybe despite its heavy web optimizations.
- orev 5y agoSure. 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.
- jeffbee 5y agoI 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.
- dragontamer 5y agoBut this seems like a patch given to the LZMA project, with an interesting low-level result to boot.
- rwmj 5y agoI don't know about web use, but xz's major advantage for me is the seekable format. We build disk image pipelines based on remote xz-compressed images where only the parts of the file being accessed need to be downloaded and uncompressed. https://libguestfs.org/nbdkit-xz-filter.1.html https://libguestfs.org/nbdkit-xz-filter.1.html