Gitnuro icon indicating copy to clipboard operation
Gitnuro copied to clipboard

Extremely slow opening of files for diff

Open Mingun opened this issue 10 months ago • 2 comments

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

  1. Create new file in any repository
  2. 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):

Mingun avatar Feb 25 '25 06:02 Mingun

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.

JetpackDuba avatar Feb 25 '25 15:02 JetpackDuba

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.

Compizfox avatar Jul 01 '25 17:07 Compizfox