pack-check: Sort entries by pack offset before unpacking them.
commit3af51928ab7cefa35048e3a5a9e78a127749d405
authorAlexandre Julliard <julliard@winehq.org>
Sun, 3 Jun 2007 18:21:41 +0000 (3 20:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2007 23:04:02 +0000 (6 16:04 -0700)
tree1f0f14e68a5f6c95237b6ed5d94c767a2341e95f
parentd44c782bbd6b0e806e056f9e8ff8cd8e426e67a3
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>
pack-check.c