Re: [PATCH] pack-objects: reuse data from existing pack.
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Feb 16, 2006, 03:55 UTC
- Message-ID
- <Pine.LNX.4.64.0602151953290.916@g5.osdl.org>
- In-Reply-To
- <7vbqx8m62q.fsf@assigned-by-dhcp.cox.net>
On Wed, 15 Feb 2006, Junio C Hamano wrote:
Show 7 quoted lines
> > When generating a new pack, notice if we have already the wanted > object in existing packs. If the object has a delitified > representation, and its base object is also what we are going to > pack, then reuse the existing deltified representation > unconditionally, bypassing all the expensive find_deltas() and > try_deltas() routines.
I bow down before you.
No ugly special-case caching, just automatically "the right thing", with very little overhead.
It just makes sense.
We have a winner.
Linus