News for hackers. Stuff that matters.
Re:Why are tar.xz files 15x smaller when using Python's tar ... by luckystarr on Monday March 15, 2021 @04:20AM (#26463627)
The tradeoff you show between compression ratio and compression speed is a misleading one.

The slow compression speed only takes place once (when compressing), while the saved bandwidth due to a better compression ratio is saved continuously.

Re:Why are tar.xz files 15x smaller when using Python's tar ... by OskarS on Monday March 15, 2021 @04:33AM (#26463683)
Not if you're serving things dynamically from a web server, then it happens on the fly, every request.
Re:Why are tar.xz files 15x smaller when using Python's tar ... by luckystarr on Monday March 15, 2021 @05:54AM (#26464100)
True. But there you can go into optimizations like parallelization of the compression and building an optimized dictionary upfront once to make the process faster.
Re:Why are tar.xz files 15x smaller when using Python's tar ... by pmarreck on Monday March 15, 2021 @10:56AM (#26466753)
Cache by the ETag and/or If-Modified-Since headers, then