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 210637 - Spend 10s when call CopyOnWriteArraySet.add() in DependencyAggregator
Summary: Spend 10s when call CopyOnWriteArraySet.add() in DependencyAggregator
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-04-03 16:41 UTC by sreimers
Modified: 2012-10-25 10:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 170073


Attachments
nps snapshot (159.12 KB, application/nps)
2012-04-03 16:41 UTC, sreimers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sreimers 2012-04-03 16:41:53 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-8954-on-20120403)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.0-b17, Java(TM) SE Runtime Environment, 1.7.0_04-ea-b16
OS: Windows 7
Maximum slowness yet reported was 25385 ms, average is 16872
Comment 1 sreimers 2012-04-03 16:41:59 UTC
Created attachment 117751 [details]
nps snapshot
Comment 2 Jiri Rechtacek 2012-05-11 16:50:51 UTC
Adding new element to CopyOnWriteArraySet collection is too expensive there.
Comment 3 Jiri Rechtacek 2012-10-19 08:31:22 UTC
http://hg.netbeans.org/core-main/rev/68688e96f6bf
Comment 4 Quality Engineering 2012-10-25 10:50:18 UTC
Integrated into 'main-golden', will be available in build *201210250921* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/68688e96f6bf
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #210637: Spend 10s when call CopyOnWriteArraySet.add() in DependencyAggregator