diff options
author | Nicolas Pitre <nico@cam.org> | 2007-03-17 21:13:57 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-18 15:36:59 -0700 |
commit | a0cba10847c85b0becc3c7045a423e3dc8a8f4ae (patch) | |
tree | 701e3f5a75cb3c77c65485ef72133d913a265327 /tree-walk.c | |
parent | e5e01619bcb753a3c45fb51d498371c9ff0677da (diff) | |
download | git-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