Re: [patch/rfc] grafthistory: keep the downloaded pack, speed up git gc

Jonas Fonseca <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
Kalle Olavi Niemitalo <[email protected]> wrote Sun, Feb 24, 2008:
> To segregate the historical commits (can't remember why),
> I originally placed their pack in an alternate object store,
> but later I found that a *.keep file does the job as well.
> This gives a considerable speedup in git gc.  It takes some
> more disk space but OTOH you might then run gc more often
> and have fewer loose objects.
> 
> OK to push?

Yes, please. It sounds like a very good idea.

> +# real      user      sys      (tested in this order)
> +# 1m15.900s 0m59.732s 0m4.336s gc after clone&graft without *.keep
> +# 0m23.162s 0m17.549s 0m1.588s gc after clone&graft with *.keep
> +# 0m06.932s 0m04.440s 0m0.588s gc after clone&graft&gc with *.keep
> +# 0m32.214s 0m24.138s 0m2.284s gc after clone&graft&gc without *.keep
> +# Total size of .git/objects/pack/ was 90592 KiB without *.keep
> +# and 97397 KiB with *.keep.  So *.keep reduced gc time by 70-80%
> +# but increased disk space usage by 7.5%. 

Maybe without this?

-- 
Jonas Fonseca
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.