-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[Summary] Go to file (Find files in repo) optimization #20231
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
Comments
For the find files, we have two ways to optimize. One is cache all the file paths, another is to use a backend search rather than frontend search or both. |
Both are not easy, so for 1.17, a configuration to allow users disable should be a quick patch. |
This feature is not the only slow one, and not the most urgent one to be optimized. There are already a lot of slow handlers in Gitea. For example, for the same repo:
Update: now the 56s handler has been optimized by A new test shows that the
Before |
--> Refactor parseTreeEntries, speed up tree list #21368 |
--> Use weighted algorithm for string matching when finding files in repo #21370 Then this issue could be closed as completed. |
…#21370) This PR is for: * #20231 Now, when a user searches `word`, they always see `/{word}.txt` before `/{w}e-g{o}t-{r}esult.{d}at` Demo: When searching "a", "a.ext" comes first. Then when searching "at", the longer matched "template" comes first. <details>   </details> This PR also makes the frontend tests could import feature JS files by introducing `jestSetup.js` Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: silverwind <me@silverwind.io>
All done |
Follow:
TODO:
Use a config option to disable this feature if some users do not like it.not needed anymore.word
, they may want to see/{word}.txt
before/{w}e-g{o}t-{r}esult.{d}at
The text was updated successfully, but these errors were encountered: