| ▲ | r3trohack3r 3 hours ago | |
Tangentially related, I applied a similar approach to compress the npm registry by over 90% on disk a few years back. Since most versions of a package are similar, you can delta encode them first and then compress them. The deltas are small and compress well as a collection with the original source files. For another use case, prior to compressing, I’ve applied a rolling hash to deterministically split the file. Then compressed the chunks and stored them in a CID filesystem. The result is that files that are largely similar share compressed chunks. There are a lot of things we can do to be substantially more efficient with the computers we have, but engineers often cost more than hardware. With recent supply chain constraints that calculus is changing! | ||
| ▲ | Twirrim 29 minutes ago | parent | next [-] | |
I'd be curious whether block level de-duping would add value too in their case. You effectively achieved that to some degree with storing the deltas. | ||
| ▲ | a_t48 2 hours ago | parent | prev [-] | |
I've done similar things for large container images. My format allows for using FastCDC to chunk files, but there's a tradeoff between number of shared chunks and between number of HTTP requests. I keep it turned off by default. | ||