Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the filesystem cache (fscache) in refresh_index(). #22

Merged
merged 1 commit into from
Sep 27, 2018
Merged

Enable the filesystem cache (fscache) in refresh_index(). #22

merged 1 commit into from
Sep 27, 2018

Commits on Sep 26, 2018

  1. Enable the filesystem cache (fscache) in refresh_index().

    On file systems that support it, this can dramatically speed up operations
    like add, commit, describe, rebase, reset, rm that would otherwise have to
    lstat() every file to "re-match" the stat information in the index to that
    of the file system.
    
    On a synthetic repo with 1M files, "git reset" dropped from 52.02 seconds to
    14.42 seconds for a savings of 72%.
    
    Signed-off-by: Ben Peart <Ben.Peart@microsoft.com>
    benpeart committed Sep 26, 2018
    Configuration menu
    Copy the full SHA
    346e51a View commit details
    Browse the repository at this point in the history