summaryrefslogtreecommitdiff
path: root/builtin-diff-index.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2007-03-17 12:44:06 -0700
committerJunio C Hamano <junkio@cox.net>2007-03-18 15:36:59 -0700
commite5e01619bcb753a3c45fb51d498371c9ff0677da (patch)
treedbbbd964daa3b318fa304f5b3b7f7bb0e5370763 /builtin-diff-index.c
parent62f255ad586a987461c96b1da123da5e2cc3f619 (diff)
downloadgit-e5e01619bcb753a3c45fb51d498371c9ff0677da.tar.gz
Implement a simple delta_base cache
This trivial 256-entry delta_base cache improves performance for some loads by a factor of 2.5 or so. Instead of always re-generating the delta bases (possibly over and over and over again), just cache the last few ones. They often can get re-used. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-diff-index.c')
0 files changed, 0 insertions, 0 deletions