Re: gc --aggressive
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Apr 17, 2012, 20:52 UTC
- Message-ID
- <vpqbomqqdxo.fsf@bauges.imag.fr>
- In-Reply-To
- <CAG+J_DyqvCxwd6+gzixQEk6SxMZF0qsXKcJPaU6imsJdFQ-64g@mail.gmail.com>
Jay Soffian <jaysoffian@gmail.com> writes:
Show 7 quoted lines
> + 3. `git gc --aggressive`; this is often much slower than (2) because git > + throws out all of the existing deltas and recomputes them from > + scratch. It uses a higher window parameter meaning it will spend > + more time computing, and it may end up with a smaller pack. However, > + unless the repository is known to have initially been poorly packed, > + this option is not needed and will just cause git to perform > + extra work.
I like your patch.
Maybe you should elaborate on "unless the repository is known to have initially been poorly packed". My understanding is that --aggressive was implemented to be called after an import from another VCS that would have computed very poor deltas, but I'm not sure about the details.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/