Re: [PATCH 2/2] Implement a simple delta_base cache
- From
Junio C Hamano <junkio@cox.net>
- Date
- Mar 17, 2007, 23:12 UTC
- Message-ID
- <7vabybqxaj.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0703171420420.4964@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
> Here's the trivial patch to extend the caching to 1k entries if somebody > cares. I don't know if the small added performance is worth it.
This largely would depend on the project, but if a blob that is cached is 20kB each, a 1024-entry cache would grow to 20MB. We may need to introduce early eviction of cached objects with total cache size limit, configurable per repository.