Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Listview: Improve performance #7227

Closed
gabrielschulhof opened this issue Mar 9, 2014 · 0 comments
Closed

Listview: Improve performance #7227

gabrielschulhof opened this issue Mar 9, 2014 · 0 comments
Assignees
Milestone

Comments

@gabrielschulhof
Copy link

  • The list of anchors which is computed in the innermost loop is always reduced via .first(), even though in many cases there is only one anchor in the list. There is already special casing for when an li contains multiple anchors (split button), so we can improve the performance of all non-split-button-lists by avoiding an unnecessary call to .first()
  • addFirstLastClasses() uses .not( ".ui-screen-hidden" ). This can be evaluated faster using a custom function that parses .className.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant