-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select processing of large groups of selects takes too long #436
Comments
@keanulee any thoughts on how I might approach this problem in a way that would be enticing to the team? |
Not super familiar with |
That is exciting, I'll have to look into this more deeply. However, a quick pass on testing that out yields only slightly better results why working with the "hybrid" version: https://jsbin.com/buhewosuli/edit?html,console,output And, while the test in this https://github.com/PolymerElements/iron-list/blob/2.0-preview/iron-list.html#L1528 Am I reading that right? What's more, it seems that a full v2.0 demo actually has worse performance here: https://jsbin.com/tanuzodire/1/edit?html,console,output Still learning my polygit with v2, so I might have messed something up in that JS Bin, let me know if you see anything particularly weird there. I definitely have the move to Polymer 2.0 on my to-do list, but it's still too much of a moving target (especially re: these sorts of issues) to sell time on in to my office. |
In that case maybe it's worthwhile to add a |
I'll have to catch up on some of my 2.0-isms anyways, so here's as good a time as any. Let me see what I can do. |
@keanulee I've got a branch coming together for this that's gonna rely on some PRs to the various Polymer branches, but I wanted to share the progress so far: V1: https://jsbin.com/fiqanewevo/1/edit?html,console,output In that the PR for this would rely on the referenced changed to the Polymer library, would it be better if I wait till those are accepted or should I go ahead and put in the |
You could put it in a PR now, but I don't think anyone would look at them until the Polymer ones are merged. |
Any follow ups to this? I am hitting the same issue. |
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
selectItem
applied code fromarray-selector
When you follow that into thearray-selector
, you can see that it's pushing into it'sselected
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
Browsers Affected
The text was updated successfully, but these errors were encountered: