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 48242 - Debugger views - select all takes long time
Summary: Debugger views - select all takes long time
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-08-31 15:09 UTC by _ lcincura
Modified: 2008-12-22 17:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
See attachement for problematic calls. (103.56 KB, text/plain)
2004-08-31 17:01 UTC, Jan Jancura
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ lcincura 2004-08-31 15:09:09 UTC
NetBeans IDE 200408271257 on java 1.5.0-rc-b63

1, Create many watches
2, Select some watch and press Ctrl+A (select all)
=> this operation is very very slow. From user
point of view it looks like IDE is frozen.
Comment 1 _ lcincura 2004-08-31 15:11:21 UTC
Reproducible also on other debugger views
Comment 2 Jan Jancura 2004-08-31 16:58:48 UTC
Looks like very ugly bug in TreeTable:
TreeTable$ListToTreeSelectionModelWrapper.updateSelectedPathsFromSelectedRows

Ctrl+A (select all nodes) for 1000 Nodes in one view is translated to
1000 calls of ExplorerManager.setSelectedNodes () method.

Comment 3 Jan Jancura 2004-08-31 17:01:27 UTC
Created attachment 17261 [details]
See attachement for problematic calls.
Comment 4 _ tboudreau 2004-09-01 11:25:32 UTC
Fixed - there was no need to singly add paths to the selection model, JTree has 
setSelectedRows(int[]).

Checking in TreeTable.java;
/cvs/openide/src/org/openide/explorer/view/TreeTable.java,v  <--  TreeTable.java
new revision: 1.61; previous revision: 1.60
done
Comment 5 _ lcincura 2004-10-19 10:53:19 UTC
Verified on build 200410181800