Skip to content
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

perf: reorderOnSort option for collectionView #2301

Closed
wants to merge 1 commit into from

Conversation

ptbrowne
Copy link
Contributor

@ptbrowne ptbrowne commented Feb 7, 2015

Why

When the collectionView need to resort, the default implementation is to re-render. This can have performance problems on large CollectionViews where ChildViews are a bit complex.

How

ChildViews have already been rendered once so instead of re-rendering them, reuse them and only sort DOM nodes.

Possible problems

ChildViews that knows their index and use it in their rendering will know be able to use this technique since they need to be re-rendered after sorting. This is why this performance improvement is not enabled by default.

See #1979

@samccone
Copy link
Member

samccone commented Feb 7, 2015

hi @ptbrowne thanks for opening this PR!

It looks like since this is behind a feature flag we can get this sucker into minor. Would you mind reopening this PR into the minor branch?

Thanks

@ptbrowne
Copy link
Contributor Author

ptbrowne commented Feb 7, 2015

Done in #2302

@ptbrowne ptbrowne closed this Feb 7, 2015
@samccone
Copy link
Member

samccone commented Feb 7, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants