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

Listview: Improve performance #7227

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

Comments

Projects
None yet
1 participant
@gabrielschulhof
Contributor

gabrielschulhof commented Mar 9, 2014

  • 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 join this conversation on GitHub. Already have an account? Sign in to comment