mbien opened a new issue, #4500:
URL: https://github.com/apache/netbeans/issues/4500

   ### Body
   
   This is somewhat related to #4140 (fixed via #4142 / NB 15) but the codepath 
is different (see flamegraph).
   
   when taking the FieldsOfJoy test as baseline and adding 10k methods to the 
fields, completion performance suffers significantly (~10s). If the methods are 
not there, completion finishes instantly thanks to #4142.
   
   However: this is specific to static imports, it can't be reproduced with 
normal usage
   
   ```java
   //import static test.fields.FieldsOfJoy10k.*;   // <- this is always fast 
with NB 15
   import static test.fields.FieldsOfJoy10k_many_methods.*;
   
   public class Fields {
       public static void main(String[] args) {
           System.out.println( );  // use completion here, this is slow!
           System.out.println(test.fields.FieldsOfJoy10k_many_methods.);  // 
this is fast!
       }
   }
   ```
   thanks to @SirIntellegence for discovering this 
(https://github.com/apache/netbeans/pull/4440#issuecomment-1213492886).
   
   
   async profiler flamegraph shows that a significant time is spent in 
`JavaCompletionTask.conflictsWithLocal` (this isn't the full graph, see 
attached file below)
   
![many_methods](https://user-images.githubusercontent.com/114367/184451744-31568e87-1df1-47fd-be11-2772fec5fea6.png)
   
   full graph:
   
[many_methods.html.txt](https://github.com/apache/netbeans/files/9330116/many_methods.html.txt)
   
   
   
   ### Committer
   
   - [X] I acknowledge that I am a maintainer/committer in the Apache NetBeans 
project.


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