Extremely slow opening of files for diff
Describe the bug It seems that time to open file does not depend on the file size and even for small files (XML file with 21 lines) can take several seconds (loadbar animation cycles at least 2 times for me). For comparison, GitKraken (Electron-based application) takes less then a second to open it (and even this I feel as unnecessary slowness).
To Reproduce
- Create new file in any repository
- Open it (in would be in new status, wish "plus" icon). Even when no need to compute diff, open time is extremely slow.
Expected behavior Files of adequate size (up to 10Kb at least) should be opened instantly (less then 0.1 second). Big files (1-10Mb) should take less then a second to open.
Desktop (please complete the following information):
- OS: Ubuntu 24.04.2 LTS
- Version: 1.5.0-beta01
Hello,
I've noticed the same issue with large repositories. It seems to be an issue with JGit, perhaps there is an API to improve the performance, otherwise I will try opening a bug report to their repo.
If it is of any use, I notice that only opening the diff of unstaged files is slow. Staging a file and then opening the diff of the staged file is nearly instant.