Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Repeater optimizations #317

Closed
wants to merge 4 commits into from

Conversation

IgorMinar
Copy link
Contributor

No description provided.

when growing children linker calls eval for new nodes, so we need
to call it only for reused nodes.
- extend size() to take size(obj, ownPropsOnly)
- add specs for size()
- update docs to mention string support
- use size() in ng:repeat

including the hasOwnProp check for all object doesn't create
significant perf penalty:
http://jsperf.com/dedicated-code-branch-for-hasownprop
the original implementation returned incorrect value value for
objects with 'length' property.
- unless we are repeating OPTION elements, buffer new nodes in document
  fragment and append them to the DOM in one go at the end
- for OPTION elements we have to keep on using the old way
  because of how option widget communicates with select widget
  this should be change, but that change is out of scope of this CL
- modify jqLite to support wrapping of document fragments
- fix jqLite documentation typo

This change unintentionally avoids the following webkit bug that
that affects repeater growth:
https://bugs.webkit.org/show_bug.cgi?id=57059

However the following bug affecting shrining of repeaters is still
unresolved https://bugs.webkit.org/show_bug.cgi?id=57061
@mhevery
Copy link
Contributor

mhevery commented Mar 29, 2011

LGTM

@IgorMinar
Copy link
Contributor Author

angular.js: master commits c06c5a3...15ec78f - http://bit.ly/fhLBZ5

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

Successfully merging this pull request may close these issues.

2 participants