diff options
author | Nicolas Pitre <nico@cam.org> | 2006-05-15 13:47:16 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-15 12:32:13 -0700 |
commit | ff45715ce50b80ab16ee0d0dc7fff0c47a51959a (patch) | |
tree | aab49d4b562b46c146524f0f9729037666b79380 /ppc/sha1.c | |
parent | 4e8da1958111796d55ad63b229ebd3ae6c54bf87 (diff) | |
download | git-ff45715ce50b80ab16ee0d0dc7fff0c47a51959a.tar.gz git-ff45715ce50b80ab16ee0d0dc7fff0c47a51959a.tar.xz |
pack-object: slightly more efficient
Avoid creating a delta index for objects with maximum depth since they
are not going to be used as delta base anyway. This also reduce peak
memory usage slightly as the current object's delta index is not useful
until the next object in the loop is considered for deltification. This
saves a bit more than 1% on CPU usage.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ppc/sha1.c')
0 files changed, 0 insertions, 0 deletions