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

   improves the performance of the phase in which the overrides editor 
annotations are computed (similar to 
https://github.com/apache/netbeans/pull/8437 but no cache is needed here).
   
   691e6cae83fcb0bd7427f8e02ffcb2c68905142b has the perf enhancement
   93dcd634584a92a7e7ac16ca7e3352de1f4d6325 JDK 17 lang level cleanup in the 
containing `java.editor.overridden` package
   
    - `ClassIndex` creation is expensive, `ClasspahInfo` initializes it lazily
    - this moves `ClasspahInfo` out of inner loops to reduce creation overhead 
of `ClasspahInfo` and its internal `ClassIndex` instance
   
   running a synthetic [test 
file](https://github.com/mbien/nb-reprorepo/blob/54003b76bc25116e2f563940836709f02d125b19/performance/classes/src/main/java/test/classes/InnerClasses10k.java#L3)
 with 10k package private elements
   
   before:
   
![ComputeOverrrides0](https://github.com/user-attachments/assets/f7ca1b01-88ef-4f6b-8d25-272c623b9eb5)
   
   after:
   
![ComputeOverrrides1](https://github.com/user-attachments/assets/fbf795f6-2115-4e61-9a61-281cdcce7ce6)
   
   
   
   before:
   ```
   ComputeAnnotations_delta: 8853
   ```
   after:
   ```
   ComputeAnnotations_delta: 4256
   ```
   
   another hotspot with great potential for improvements is 
`ElementUtils#getTypeElementByBinaryName`, but this has to be addressed 
separately.


-- 
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: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

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

Reply via email to