Git operations and web interface are very slow (over 5 seconds per click)

Issue #7093 invalid
Yegor Bugayenko
created an issue

Our Git repository is not huge, but every Git command line call and web interface operation takes too long, sometimes over 10 seconds. Can you do something about it?

Comments (11)

  1. Nicolas Venegas

    Hi Yegor

    For the repositories emesa/hammer and thanpa/hammer, they had lots of object files in their respective git repositories (around 250,000 spread over about 20,000 files).

    I've run git gc --aggressive on both repos (which also packs the objects) which should improve performance.

    Can you please let me know if you notice a difference, or if there are other repositories that are particularly slow so that we can do the same to them?



  2. nimja

    Can we also run git prune on the server and why isn't there a way to do this for us to clean up the respository.

    When pushing we get the message: warning: there are too many unreachable loose objects; run 'git prune' to remove them.

  3. Brodie Rao

    Hi Yegor,

    It's safe to ignore that warning. Git is a little overzealous about when it gives out that warning.

    We're currently working on making our automatic garbage collection smarter, so you shouldn't need to do this manually.

    As for slow command line performance, try running git gc --aggressive and git prune locally. If that still doesn't speed things up, you might want to consider putting less data in your Git repo (Git isn't fast for every kind of repo).

    If you're still running into issues, let me know. Thanks!

  4. Log in to comment