Re: [RFC/PATCH] Add a --nosort option to pack-objects
- From
Mike Hommey <mh@glandium.org>
- Date
- Dec 7, 2007, 21:44 UTC
- Message-ID
- <20071207214426.GA13170@glandium.org>
- In-Reply-To
- <alpine.LFD.0.99999.0712071622150.555@xanadu.home>
On Fri, Dec 07, 2007 at 04:24:17PM -0500, Nicolas Pitre wrote:
Show 9 quoted lines
> On Fri, 7 Dec 2007, Mike Hommey wrote: > > > While most of the time the heuristics used by pack-objects to sort the > > given object list are satisfying enough, there are cases where it can be > > useful for the user to sort the list with heuristics that would be better > > suited. > > Could you please elaborate on those cases where the current heuristic > would be unsatisfactory?
I imagine it could be useful when importing a huge tree in the first commit, when some data in the tree is redundant with (or similar to) others in the same tree. I guess there could be some other VCS use-cases.
The real case where I've been using this is that I use git to store my debian build logs in an efficient manner, and having a custom-sorted list of objects ends up being much faster and less memory consuming than using a huge window (and 1GB of logs became less than 10MB).
Mike