From: Jeff King <peff@peff.net>
To: "Dale R. Worley" <worley@alum.mit.edu>
Cc: git@vger.kernel.org
Subject: Re: What happens when the repository is bigger than gc.autopacklimit * pack.packSizeLimit?
Date: Wed, 27 Aug 2014 15:47:46 -0400 [thread overview]
Message-ID: <20140827194746.GE7561@peff.net> (raw)
In-Reply-To: <201408271936.s7RJarOh011358@hobgoblin.ariadne.com>
On Wed, Aug 27, 2014 at 03:36:53PM -0400, Dale R. Worley wrote:
> And it appears from an experiment that this is what happens. I have a
> repository with pack.packSizeLimit = 99m, and there are 104 pack
> files, and even when "git gc" is done, if I do "git gc --auto", it
> will do git-repack again.
I agree that "gc --auto" could be smarter here, but I have to wonder:
why are you setting the packsize limit to 99m in the first place? It is
generally much more efficient to place everything in a single pack.
There are more delta opportunities, fewer base objects, lookup is faster
(we binary search each pack index, but linearly move through the list of
indices), and it is required for advanced techniques like bitmaps.
-Peff
next prev parent reply other threads:[~2014-08-27 19:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 19:36 What happens when the repository is bigger than gc.autopacklimit * pack.packSizeLimit? Dale R. Worley
2014-08-27 19:47 ` Jeff King [this message]
2014-08-29 15:38 ` Dale R. Worley
2014-08-29 18:47 ` Jeff King
2014-08-29 18:54 ` Dale R. Worley
2014-08-27 20:52 ` Junio C Hamano
2014-08-29 15:47 ` Dale R. Worley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140827194746.GE7561@peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=worley@alum.mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).