]> git.ipfire.org Git - thirdparty/git.git/commit - sha1_file.c
use a LRU eviction policy for the delta base cache
authorNicolas Pitre <nico@cam.org>
Mon, 19 Mar 2007 20:31:04 +0000 (16:31 -0400)
committerJunio C Hamano <junkio@cox.net>
Tue, 20 Mar 2007 01:16:02 +0000 (18:16 -0700)
commit5e08ecbff219dc68a13eb372b39030134e737c8a
tree5eba8109d14335a46225efb8aba79d1a9facd6a7
parent3358004a006714477c2c44577507081cb5124fa4
use a LRU eviction policy for the delta base cache

This provides a smoother degradation in performance when the cache
gets trashed due to the delta_base_cache_limit being reached.  Limited
testing with really small delta_base_cache_limit values appears to confirm
this.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c