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

   added fast paths to hot methods and all property change listeners which are 
active during the "opening projects" phase
   
   avoid calling `findFileObject()` or using the `Lookup` in event handlers if 
possible
   
   speeds up post-launch "opening projects" phase by up to 30% when big project 
groups are loaded without making the code more complex (I tried also other 
tricks but they weren't worth their complexity).
   
   `loadInBackground()` execution time results:
   
   for 40 maven projects:
   ```
   before: 7806
   after: 6033
   ```
   
   for 850 NetBeans ant projects:
   ```
   before: 32476
   after: 21462
   ```
   
   the event handlers were called almost 1.5m times during the second project 
group which is why fast paths make such a difference there.
   
   no flame graphs this time since I overwrote the baseline graph by accident


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