threads / discuss / 35480

Thin pack

Subject: Thin pack

## tl;dr

2 messages between Dec 5, 2013 and Dec 5, 2013.

replies: 1people: 2as markdown or json

乙酸鋰· Dec 5, 2013, 01:44 UTC · lore
Hi,

What are the difference between pre 1.8.5 and 1.8.5 about thin pack support? Could you describe thin pack? From the doc, it says --thin is default option. Is that true?

Duy Nguyen· Dec 5, 2013, 03:43 UTC · re: 乙酸鋰 · lore

Re: Thin pack

On Thu, Dec 5, 2013 at 8:44 AM, 乙酸鋰 <ch3cooli@gmail.com> wrote:
> What are the difference between pre 1.8.5 and 1.8.5 about thin pack support?
No idea.
> Could you describe thin pack?

It gets a bit technical. Under the hood objects are deltified, only the differences between an object and its base are stored. If both the diff and the base are in a pack, it's a normal pack. If the pack lacks the base, it's "thin". This makes thin packs more suited for network transfer because you transfer much less. Imagine you have a 5k file, you fetch another version of the same file that changes 1 line. With thin pack, you receive just that line (not entirely true, but good enough). Without thin pack, you also receive the 5k file you already have because it's the base of the new version.

> From the doc, it says --thin is default option. Is that true?
Yes.
-- 
Duy

← back to recent threads