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 - Slow code completion: massive #include processing took 2134 ms
Summary: Slow code completion: massive #include processing took 2134 ms
Status: RESOLVED DUPLICATE of bug 220682
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-11-08 09:17 UTC by Exceptions Reporter
Modified: 2012-12-07 10:30 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191982


Attachments
nps snapshot (47.77 KB, application/nps)
2012-11-08 09:17 UTC, Exceptions Reporter
Details
nps snapshot (82.86 KB, application/nps)
2012-11-16 12:58 UTC, eskild
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***