author | Linus Torvalds <torvalds@linux-foundation.org> | |
Fri, 14 Nov 2008 00:36:30 +0000 (16:36 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 15 Nov 2008 03:11:49 +0000 (19:11 -0800) | ||
commit | 671c9b7e315db89081cc69f83a8f405e4aca37bc | |
tree | 0410fb1af855fc65a7d96dd15410db16e41cbc9f | tree | snapshot |
parent | a0d3ab9c277f1a198ec8e29432c0127d4cf719d2 | commit | diff |
Add cache preload facility
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: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt | diff | blob | history | |
Makefile | diff | blob | history | |
builtin-commit.c | diff | blob | history | |
builtin-diff-files.c | diff | blob | history | |
builtin-diff.c | diff | blob | history | |
cache.h | diff | blob | history | |
config.c | diff | blob | history | |
environment.c | diff | blob | history | |
preload-index.c | [new file with mode: 0644] | blob |