mbien opened a new pull request, #8948:
URL: https://github.com/apache/netbeans/pull/8948

   The binary class path Set has the tendency to have duplicated roots. The 
added deduplication pass ensures that `findSourceRoots2` isn't called more 
often than necessary.
   
   This can significantly improve the performance during code inspect and 
transform actions, esp when many projects are open.
   
   relative time spent in `listClassPathHints()` during inspect/transform 
dialog open.
   
   before:
   <img width="1544" height="940" alt="image" 
src="https://github.com/user-attachments/assets/a21841e7-0776-4899-ad74-dc056bf37f7d";
 />
   
   after:
   <img width="1544" height="940" alt="image" 
src="https://github.com/user-attachments/assets/298a1d4d-2a55-4478-913c-11b84e1a4989";
 />
   
   
   
   
   benchmark was a project wide code inspection run with all 856 NetBeans 
modules open.
   `listClassPathHints()` execution time in ms
   
   before:
   ```
     17375 cold
      6177 warm
   ```
   
   after:
   ```
     3648 cold
     1299 warm
   ```
   
   the number of entries was reduced from 154997 to 1258 in that use case.


-- 
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