• Linus Torvalds's avatar
    Add cache preload facility · 671c9b7e
    Linus Torvalds authored
    This can do the lstat() storm in parallel, giving potentially much
    improved performance for cold-cache cases or things like NFS that have
    weak metadata caching.
    
    Just use "read_cache_preload()" instead of "read_cache()" to force an
    optimistic preload of the index stat data.  The function takes a
    pathspec as its argument, allowing us to preload only the relevant
    portion of the index.
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    671c9b7e
environment.c 4.41 KB