• J
    [PATCH] Check packs and then files. · ab90ea5d
    Junio C Hamano 提交于
    This reverses the order of object lookup, to check pack index first and
    then go to the filesystem to find .git/objects/??/ hierarchy.
    
    When most of the objects are packed, this saves quite many stat() calls
    and negative dcache entries; while the price this approach has to pay is
    negligible, even when most of the objects are outside pack, because
    checking pack index file is quite cheap.
    Signed-off-by: NJunio C Hamano <junkio@cox.net>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    ab90ea5d
sha1_file.c 30.6 KB