fsck: drop inode-sorting code
commit144e4cf7092ee8cff44e9c7600aaa7515ad6a78f
authorJeff King <peff@peff.net>
Thu, 24 Sep 2015 21:08:28 +0000 (24 17:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Oct 2015 18:08:06 +0000 (5 11:08 -0700)
tree110d0c3b8b07e0b8cee2c843314361d3ea91df56
parenteddda371449ba925d91d04c615d084adf1b43a33
fsck: drop inode-sorting code

Fsck tries to access loose objects in order of inode number,
with the hope that this would make cold cache access faster
on a spinning disk. This dates back to 7e8c174 (fsck-cache:
sort entries by inode number, 2005-05-02), which predates
the invention of packfiles.

These days, there's not much point in trying to optimize
cold cache for a large number of loose objects. You are much
better off to simply pack the objects, which will reduce the
disk footprint _and_ provide better locality of data access.

So while you can certainly construct pathological cases
where this code might help, it is not worth the trouble
anymore.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c