"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: process deltas in compressed form
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Wed, 4 May 2022 18:14:59 +0200

Download raw body.

Thread
On Wed, May 04, 2022 at 04:47:41PM +0200, Omar Polo wrote:
> Stefan Sperling <stsp@stsp.name> wrote:
> > On Mon, May 02, 2022 at 02:02:44PM +0200, Omar Polo wrote:
> > > i'm happy about hte change, but i remember 'gotadmin pack -a' working on
> > > a 4GB /tmp partition:
> > > 
> > > % df -h | fgrep /tmp
> > > /dev/sd1d      3.9G    6.8M    3.7G     0%    /tmp
> > > % /usr/local/bin/gotadmin -V
> > > gotadmin 0.68
> > > % time /usr/local/bin/gotadmin pack -a
> > > 219498 commits colored; 2088729 objects found; 1010361 trees scanned
> > > packing 5 references; 2088729 objects; deltify: 100%; writing pack: 1.2G 100%
> > > Wrote fe8e346aa0f23dc77371a3ad76f5bcea7d5ea071.pack
> > >  1.2G packed; indexing 100%; resolving deltas 100%
> > 
> > For me packing src.git creates a 2.4G pack and that blows up /tmp.
> > No idea why your pack is that much smaller. Perhaps your pack we are
> > reusing was created with more aggressive deltification parameters?
> 
> I may have created my ~/git/src.git with `git clone --bare', it's been a
> while and I don't really remember, sorry.
>
> To be sure thought I've just re-cloned and it's still the same:

It would seem current Github clones are just packed more aggressively.
I am using a src repo I have had lying around for ages and it has a 2.4G
pack file.

> P.S.: your latest patch cuts `pack -a' down by almost 4 minutes on
>       src.git!

Yes, not fast enough yet but already a bit better.