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 230187 - org.netbeans.swing.outline.EventBroadcaster.treeNodesInserted: LowPerformance took 20944 ms.
Summary: org.netbeans.swing.outline.EventBroadcaster.treeNodesInserted: LowPerformance...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-05-23 14:20 UTC by Benjiwp
Modified: 2013-05-24 16:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 188497


Attachments
nps snapshot (33.60 KB, application/nps)
2013-05-23 14:20 UTC, Benjiwp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjiwp 2013-05-23 14:20:30 UTC
Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) Client VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
Benjiwp: open git history



Maximum slowness yet reported was 20944 ms, average is 18769
Comment 1 Benjiwp 2013-05-23 14:20:32 UTC
Created attachment 134815 [details]
nps snapshot
Comment 2 Stanislav Aubrecht 2013-05-23 14:27:29 UTC
Vector.indexOf() takes 7000ms to finish - either too many nodes in Outline model or badly written equals() method.
Please evaluate.
Comment 3 Martin Entlicher 2013-05-24 16:42:35 UTC
There is no equals() method overridden, therefore the Object.equals() is used.
The list of nodes has to be really large. Only the iteration through them takes 2.5 seconds.
Since the performance of VariableHeightLayoutCache would have to be improved in JDK, it's won't fix from NetBeans side IMHO.