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.
The method changeSelectionInModel(...) in ETable iterates over all currently selected rows and causes a call to changeSelection(...) for each selected row. This causes a serious performance hit for bulk changes, e.g. select a few thousand rows in an OutlineView and trigger a column sort. The method should bundle the effective changes and limit the calls to changeSelection(...) to a minimum.
Well, the selection needs to be updated when columns are sorted. I'll check what we can do with it... we'd probably have to remember which view rows were selected and do not change the selection if they should be selected again after the sorting.
The performance in selection changes is significantly improved by http://hg.netbeans.org/main/rev/70bd83e8f43f
Integrated into 'main-golden', will be available in build *201010050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/70bd83e8f43f User: mentlicher@netbeans.org Log: #190634 Improve performance of changes in selection. Do not select rows that are already selected and add/remove selected rows in intervals.