This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 221699

Summary: Slow code completion: macro expansion took 24301 ms
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: Code CompletionAssignee: Vladimir Voskresensky <vv159170>
Status: NEW ---    
Severity: normal CC: kosmonaffft
Priority: P3 Keywords: PERFORMANCE
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 194735
Attachments: nps snapshot

Description Alexander Simon 2012-11-08 09:32:05 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 20121108-4f7f1b7123ec)
VM: Java HotSpot(TM) Client VM, 20.8-b03, Java(TM) SE Runtime Environment, 1.6.0_33-b03
OS: SunOS
Maximum slowness yet reported was 24301 ms, average is 24301
Comment 1 Alexander Simon 2012-11-08 09:32:45 UTC
Created attachment 127368 [details]
nps snapshot
Comment 2 Vladimir Kvashin 2012-12-07 08:38:12 UTC
Snapshot shows that 3/4 time is in extremely deep recursive calls of two methods calling each other:
  MacroExpandedToken.getText
  APTMacroExpansion.getText
  MacroExpandedToken.getText
  APTMacroExpansion.getText
  ...
And about 18% is in 
  APTUtils.getExpandedToken which goes into a very deep recursion
Comment 3 Vladimir Voskresensky 2014-02-10 15:38:37 UTC
*** Bug 241123 has been marked as a duplicate of this bug. ***
Comment 4 Vladimir Voskresensky 2014-02-10 15:38:59 UTC
*** Bug 241122 has been marked as a duplicate of this bug. ***
Comment 5 Vladimir Voskresensky 2014-02-10 15:53:14 UTC
*** Bug 235966 has been marked as a duplicate of this bug. ***