author | Linus Torvalds <torvalds@osdl.org> | |
Thu, 29 Jun 2006 21:04:01 +0000 (14:04 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 29 Jun 2006 22:24:29 +0000 (15:24 -0700) | ||
commit | 51d1e83f91a16363930023a5c39f79f270c04653 | |
tree | b828fd13144d10026feeafe14840411386eaa26e | tree | snapshot |
parent | 75dedd5a21246be03ae443e9fc6a9f75c6d2995b | commit | diff |
Do not try futile object pairs when repacking.
In the repacking window, if both objects we are looking at already came
from the same (old) pack-file, don't bother delta'ing them against each
other.
That means that we'll still always check for better deltas for (and
against!) _unpacked_ objects, but assuming incremental repacks, you'll
avoid the delta creation 99% of the time.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
In the repacking window, if both objects we are looking at already came
from the same (old) pack-file, don't bother delta'ing them against each
other.
That means that we'll still always check for better deltas for (and
against!) _unpacked_ objects, but assuming incremental repacks, you'll
avoid the delta creation 99% of the time.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
pack-objects.c | diff | blob | history |