author | Alexandre Julliard <julliard@winehq.org> | |
Sun, 3 Jun 2007 18:21:41 +0000 (20:21 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Jun 2007 23:04:02 +0000 (16:04 -0700) | ||
commit | 3af51928ab7cefa35048e3a5a9e78a127749d405 | |
tree | 1f0f14e68a5f6c95237b6ed5d94c767a2341e95f | tree | snapshot |
parent | d44c782bbd6b0e806e056f9e8ff8cd8e426e67a3 | commit | diff |
pack-check: Sort entries by pack offset before unpacking them.
Because of the way objects are sorted in a pack, unpacking them in
disk order is much more efficient than random access. Tests on the
Wine repository show a gain in pack validation time of about 35%.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Because of the way objects are sorted in a pack, unpacking them in
disk order is much more efficient than random access. Tests on the
Wine repository show a gain in pack validation time of about 35%.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-check.c | diff | blob | history |