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 221698

Summary: Slow code completion: massive #include processing took 2134 ms
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: Code CompletionAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cyhelsky, eskild, hmichel, kosmonaffft
Priority: P3 Keywords: PERFORMANCE
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 191982
Attachments: nps snapshot
nps snapshot

Description Exceptions Reporter 2012-11-08 09:17:10 UTC
Build: NetBeans IDE 7.3 Beta (Build 201210011125)
VM: OpenJDK 64-Bit Server VM, 23.2-b09, OpenJDK Runtime Environment, 1.7.0_09-b30
OS: Linux

User Comments:
GUEST: While open autocomplete dialog get this.

GUEST: I tried to complete destructor, I wrote ~[start of class name] and press ctrl+space to complete it.

GUEST: Typing a custom class name



Maximum slowness yet reported was 10778 ms, average is 4785
Comment 1 Exceptions Reporter 2012-11-08 09:17:12 UTC
Created attachment 127367 [details]
nps snapshot
Comment 2 eskild 2012-11-16 12:58:30 UTC
Created attachment 127932 [details]
nps snapshot

Tried to launch a search operation: Filled in parameters, go => pause.
Comment 3 Vladimir Kvashin 2012-12-07 08:21:27 UTC
First snapshot shows the following:
Half is spent here:
APTAbstractWalker.includeImpl -  48%:
    APTAbstractWalker.serialIncludeImpl - self time: 23%
    APTAbstractWalker.serialIncludeImpl - very deep #include recursion - 24%
Another half time is spent in gatherinh macros, which in turn lead to the above mentioned methods again.

As to the 2-nd shortcut, I don't see it is relevant at all - I don't see completion there at all. AWT is OK.
Comment 4 Vladimir Kvashin 2012-12-07 10:30:38 UTC

*** This bug has been marked as a duplicate of bug 220682 ***