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

Summary: org.netbeans.swing.outline.EventBroadcaster.treeNodesInserted: LowPerformance took 20944 ms.
Product: platform Reporter: Benjiwp
Component: Outline&TreeTableAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED WONTFIX    
Severity: normal CC: cyhelsky
Priority: P3 Keywords: PERFORMANCE
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 188497
Attachments: nps snapshot

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.