-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Applies micro-optimizations and removes obsolete settings #5591
Applies micro-optimizations and removes obsolete settings #5591
Conversation
Applies micro-optimizations that were found to improve element creation benchmarks by 5-10%, and removes obsolete settings: * Removed `legacyNoBatch` and `legacyNotifyOrder` settings. * dom-if/repeat: `dom-change` and `renderedCount` no longer fire with `legacyOptimizations` set. * legacy-element-mixin: `isAttached` now set before calling `connectedCallback` so it is batched with initial rendering. * `PropertiesChanged`: property accessor code now inlined for efficiency rather than calling `_get/_setProperty`. The `__dataCounter` tracking flag has been moved here to avoid the need to override `_flushProperties` in `PropertyEffects`. * `PropertyEffects`: inlined `runEffectsForProperty` into `runEffects` for efficiency. Removed wrapping around sending data events. * `async`: In the microtask scheduler, now only provoke a DOM mutation if needed.
Based on in-the-wild code relying on |
- Remove node_modules caching - Regen package-lock just in case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for travis changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM, pending CI & TAP
…redItemCount on that. Matches Polymer 1 setting for better backward compatibility.
This was causing a number of rendering tests to fail. Needs investigation, but possibly because wrapping calls ShadyDOM.flush, and this alters distribution timing which some tests may have inadvertently relied on.
Applies micro-optimizations that were found to improve element creation benchmarks by 5-10%, and removes obsolete settings:
legacyNoBatch
andlegacyNotifyOrder
settings.dom-change
andrenderedCount
no longer fire withlegacyOptimizations
set.LegacyElementMixin
:isAttached
now set before callingconnectedCallback
so it is batched with initial rendering.PropertiesChanged
: property accessor code now inlined for efficiency rather than calling_get/_setProperty
. The__dataCounter
tracking flag has been moved here to avoid the need to override_flushProperties
inPropertyEffects
.PropertyEffects
: inlinedrunEffectsForProperty
intorunEffects
for efficiency. Removed wrapping around sending data events.async
: In the microtask scheduler, now only provoke a DOM mutation if needed.