summaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-03-17 21:13:57 -0400
committerJunio C Hamano <junkio@cox.net>2007-03-18 15:36:59 -0700
commita0cba10847c85b0becc3c7045a423e3dc8a8f4ae (patch)
tree701e3f5a75cb3c77c65485ef72133d913a265327 /tree-walk.c
parente5e01619bcb753a3c45fb51d498371c9ff0677da (diff)
downloadgit-a0cba10847c85b0becc3c7045a423e3dc8a8f4ae.tar.gz
Reuse cached data out of delta base cache.
A malloc() + memcpy() will always be faster than mmap() + malloc() + inflate(). If the data is already there it is certainly better to copy it straight away. With this patch below I can do 'git log drivers/scsi/ > /dev/null' about 7% faster. I bet it might be even more on those platforms with bad mmap() support. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tree-walk.c')
0 files changed, 0 insertions, 0 deletions