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 211144 - ArrayStorage.cleanUpResult took 34231 ms.
Summary: ArrayStorage.cleanUpResult took 34231 ms.
Status: RESOLVED DUPLICATE of bug 190077
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-04-13 10:12 UTC by coolsabby7
Modified: 2012-11-05 14:18 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183305


Attachments
nps snapshot (70.05 KB, application/nps)
2012-04-13 10:12 UTC, coolsabby7
Details

Note You need to log in before you can comment on or make changes to this bug.
Description coolsabby7 2012-04-13 10:12:00 UTC
Build: NetBeans IDE 7.1.1 (Build 201203012225)
VM: Java HotSpot(TM) Client VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05
OS: Windows 7

User Comments:
GUEST: I selected "Close All" in the Editor View, then it started lagging like hell.

coolsabby7: I was selecting one of the function from my file using the Navigaotr side panel, when i founf the function i just double clicked it so that it would take directly to the funcrion, but instead it sort of hanged

GUEST: wrote a C++ code



Maximum slowness yet reported was 34231 ms, average is 19717
Comment 1 coolsabby7 2012-04-13 10:12:08 UTC
Created attachment 118228 [details]
nps snapshot
Comment 2 Jan Peska 2012-09-25 13:41:17 UTC
The loop at org.openide.util.lookup.ArrayStorage.cleanUpResult:285 

while (it.next()) {
   // empty
}

seems to be the problem, it took too long to clean the results. Clean method  blocks the EDT from accessing this storage so other lookups cannot be changed -> slowness. Reassigning to the Lookup.
Comment 3 Jaroslav Tulach 2012-11-05 14:18:51 UTC

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