OndroMih commented on PR #9304:
URL: https://github.com/apache/netbeans/pull/9304#issuecomment-4187315873

   @mbien , I dig deeper and found out that there are better ways to optimize 
the current algorithm, without skipping any files.
   
   I started from scratch and managed to reduce the time spent in the 
`GitClient.getStatus()` in the `refreshAllRoots` method by 75%, on Netbeans 
repo from 4s to 1s. Mostly by not executing some I/O operations, which were 
being executed and then their result was ignored.
   
   This reduces the whole time it takes to compute files statuses on the 
Netbeans repo in the Commit dialog from about 17s to about 14s.
   
   And I have even better news - I managed to speed up another part of the 
`refreshAllRoots` method by about 10 more seconds. I'll raise a separate PR for 
that because they are independent.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to