Listview: Improve performance #7227

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

Projects

None yet

1 participant

@gabrielschulhof
Contributor
  • 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.
@gabrielschulhof gabrielschulhof added this to the 1.4.3 milestone Mar 9, 2014
@gabrielschulhof gabrielschulhof self-assigned this Mar 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment