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 197044 - 50s in TreeView$ExplorerTree.doSearch() as equals on TreePath is slow
Summary: 50s in TreeView$ExplorerTree.doSearch() as equals on TreePath is slow
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-03-24 15:30 UTC by vitus
Modified: 2011-04-06 08:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 177884


Attachments
nps snapshot (7.38 KB, application/nps)
2011-03-24 15:31 UTC, vitus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vitus 2011-03-24 15:30:54 UTC
Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

User Comments:
vitus: Probably same as before, but in much longer time. Active - classes view, no editor window opened. Tried to write to search for a class.

vitus: In Classes view - searching for a class by typing it's name; then tried to move in the classes tree. 
The "Slowness detected" is very frequent (the project is quite large, but I've assigned enough memory to NB using netbeans.conf).



Maximum slowness yet reported was 50995 ms, average is 27670
Comment 1 vitus 2011-03-24 15:31:07 UTC
Created attachment 107246 [details]
nps snapshot
Comment 2 Jaroslav Tulach 2011-04-05 05:30:57 UTC
HashCode seems to be faster, let's use HashSet.
Comment 3 Jaroslav Tulach 2011-04-05 05:35:18 UTC
ergonomics#ebbf179fafc9
Comment 4 Quality Engineering 2011-04-06 08:45:39 UTC
Integrated into 'main-golden', will be available in build *201104060400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ebbf179fafc9
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #197044: HashSet.contains is based on TreePath.hashCode which seems to be way faster than equals