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

Refactor the usage of batch catfile (#31754) #31889

Merged
merged 1 commit into from
Aug 20, 2024

Commits on Aug 20, 2024

  1. Refactor the usage of batch catfile (go-gitea#31754)

    When opening a repository, it will call `ensureValidRepository` and also
    `CatFileBatch`. But sometimes these will not be used until repository
    closed. So it's a waste of CPU to invoke 3 times git command for every
    open repository.
    
    This PR removed all of these from `OpenRepository` but only kept
    checking whether the folder exists. When a batch is necessary, the
    necessary functions will be invoked.
    lunny authored and GiteaBot committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    e2bc46e View commit details
    Browse the repository at this point in the history