Closed
Description
- Gitea version (or commit ref): 6a1a633
- Git version: 2.11.0
- Operating system: Docker
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist: N/A
Description
We have a lot of repositories (>2000), and the rendering of /explore/code
is slow (see the attached screenshot, > 17 seconds) with a logged in user.
We tried to remove some permission checking feature and the speed becomes good, however we are not sure which is the slowest part. The removed code is: master...jnlin:jnlin_test
The possible parts under suspicion are:
https://github.com/go-gitea/gitea/blob/master/routers/home.go#L330
https://github.com/go-gitea/gitea/blob/master/routers/home.go#L338-L343