logoalt Hacker News

fiddlerwoaroof • today at 5:49 AM • 2 replies • view on HN

It can get even smaller when loose objects get packed into packfiles because of delta compression: a whole bunch of identical files can be stored in minimal overhead over storing one copy.


Replies

gblargg • today at 9:02 AM

Right, packfile size is really what matters in the long-term. A tiny change to a file in the short term just adds the whole thing again (compressed), whereas a tiny change in a packfile shouldn't add much at all. Unless you've got very limited disk space, the long-term is the only size that matters.

➕ show 1 reply
bewuethr • today at 8:15 AM

I think the 250 files all containing just "foo" are stored as a single blob, too, even before creating a packfile.

➕ show 1 reply