Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360370 - rwt.widgets.Grid.js#isItemSelected slow when many items selected
Summary: rwt.widgets.Grid.js#isItemSelected slow when many items selected
Status: ASSIGNED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-09 18:09 EDT by Clemens Schneider CLA
Modified: 2016-01-26 05:56 EST (History)
1 user (show)

See Also:


Attachments
chrome profile of shift-selecting 50000 items in table (21.84 KB, image/png)
2011-10-09 18:09 EDT, Clemens Schneider CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Schneider CLA 2011-10-09 18:09:15 EDT
Created attachment 204846 [details]
chrome profile of shift-selecting 50000 items in table

When having many elements (e.g. 50000) in a table and then doing a shift-select from first to last element, the UI freezes for quite some time. Profiling in chrome shows that most of the time is spent in org.eclipse.rwt.widgets.Tree#isItemSelected (see attachment). Couldn't the check be performed more efficiently?
Comment 1 Tim Buschtoens CLA 2011-11-07 12:02:17 EST
Using a hashmap might be faster, but that would have to be proven before we think ab out how to implement that.
Comment 2 Ivan Furnadjiev CLA 2016-01-26 05:56:14 EST
The client-side class has been renamed a while ago, but the function under discussion is still there. Change the title accordingly.