aboutsummaryrefslogtreecommitdiff
path: root/git-merge.sh
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 /git-merge.sh
parente5e01619bcb753a3c45fb51d498371c9ff0677da (diff)
downloadgit-a0cba10847c85b0becc3c7045a423e3dc8a8f4ae.tar.gz
git-a0cba10847c85b0becc3c7045a423e3dc8a8f4ae.tar.xz
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 'git-merge.sh')
0 files changed, 0 insertions, 0 deletions