summaryrefslogtreecommitdiff
path: root/t/t4034/cpp/pre
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-09-24 17:08:28 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-10-05 11:08:06 -0700
commit144e4cf7092ee8cff44e9c7600aaa7515ad6a78f (patch)
tree110d0c3b8b07e0b8cee2c843314361d3ea91df56 /t/t4034/cpp/pre
parentconvert strncpy to memcpy (diff)
downloadtgif-144e4cf7092ee8cff44e9c7600aaa7515ad6a78f.tar.xz
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>
Diffstat (limited to 't/t4034/cpp/pre')
0 files changed, 0 insertions, 0 deletions