-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Listing a Directory with Many files takes a long time #182
Comments
Relevant upstream issue: go-gitea/gitea#502 From poking around, the bottleneck seems to be with looking up the latest commit for each file in the directory; a separate |
Actually, I think I have a way to speed things up; it'll require making a change to an upstream dependency (https://github.com/go-gitea/git). |
This same bottleneck is why we couldn't use the elastic file system at AWS, but had to go with an EBS volume. I thought storing this data in the database might help. What did you have in mind for a fix? |
The general idea is to get all commit hashes affecting any of the directory's entries ( A proof-of-concept test I ran locally showed a ~20x improvement (15 vs 0.7 seconds) for the example repo. |
Story
As a user I don't have to have to wait a long time for a file listing when I click on a directory in my repository so that I don't waste time or get frustrated.
Notes
Opening the https://git.door43.org/Door43/en_tw/src/master/bible/other takes a while.
The text was updated successfully, but these errors were encountered: