logoalt Hacker News

Retr0idtoday at 8:04 AM2 repliesview on HN

> Gzip scales linearly. I can gzip a one terabyte file.

In part because gzip only has a 32KiB window size, and I think it'd be at least quadratic within that window if you were going for optimal compression.


Replies

bob1029today at 8:25 AM

I'll concede the window part, but Gzip runs within the physical confines of a single cpu core and is typically entirely resident in local caches. The point is not just the quadratic scaling but also what it scales with.

Show me an LLM that can run at 300 megabytes per second. Even dedicated ASICs with weights burned in will never move this fast.

show 1 reply
Sesse__today at 8:12 AM

Match-finding does not need to be quadratic. However, truly optimal gzip block splitting is very slow, indeed.