Re: pack operation is thrashing my server
- From
Nicolas Pitre <nico@cam.org>
- Date
- Aug 15, 2008, 01:46 UTC
- Message-ID
- <alpine.LFD.1.10.0808142139410.4352@xanadu.home>
- In-Reply-To
- <20080814223327.GV3782@spearce.org>
On Thu, 14 Aug 2008, Shawn O. Pearce wrote:
Show 8 quoted lines
> Andreas Ericsson <ae@op5.se> wrote: > > How does one go about getting the object sizes? rev-list appears > > to have no option for it. > > With great pain. You can use the output of verify-pack -v to > tell you the size of the inflated portion of the object, but for > a delta this is the inflated size of the delta, not of the fully > unpacked object.
Delta objects have the size of the final object in their header. There is get_size_from_delta() extracting that information already. There is simply no interface exporting that info to external tools but that shouldn't be hard to add.
Nicolas