Description
Not sure if this is ultimately an iron-list, or an array-selector, or a further up, issue, but selecting large groups of content, whether by the technique outlined in #124 or in #361 takes an inordinate amount of time. Explicitly, I'm seeing ~10s processing times for lists of 5000 items. I understand that's a lot of items, BUT that still seems crazy long.
My research points to this coming from the way selectItem applied code from array-selector When you follow that into the array-selector, you can see that it's pushing into it's selected array the subsequent property effects of which seems to be the cause of the processing delay.
Expected outcome
Selecting a large amount of items takes an virtually indistinguishably longer time than selecting one or a few.
Actual outcome
Selecting 5000 items at a time causes a ~10s block on the main thread.
Live Demo
https://jsbin.com/tobosaleki/1/edit?html,console,output
Steps to reproduce
- Visit the JS Bin demo
- Click 'select all'
- Wait, see the window.performance based timing display on completion
- Click 'select none'
- Wait, a really small amount of time, see the window.performance based timing display on completion
- Be in awe at the difference
Browsers Affected
Description
Not sure if this is ultimately an
iron-list, or anarray-selector, or a further up, issue, but selecting large groups of content, whether by the technique outlined in #124 or in #361 takes an inordinate amount of time. Explicitly, I'm seeing ~10s processing times for lists of 5000 items. I understand that's a lot of items, BUT that still seems crazy long.My research points to this coming from the way
selectItemapplied code fromarray-selectorWhen you follow that into thearray-selector, you can see that it's pushing into it'sselectedarray the subsequent property effects of which seems to be the cause of the processing delay.Expected outcome
Selecting a large amount of items takes an virtually indistinguishably longer time than selecting one or a few.
Actual outcome
Selecting 5000 items at a time causes a ~10s block on the main thread.
Live Demo
https://jsbin.com/tobosaleki/1/edit?html,console,output
Steps to reproduce
Browsers Affected