FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(android-animations): reuse animatorSet to prevent high memory usage by ADjenkov · Pull Request #6930 · NativeScript/NativeScript · GitHub

fix(android-animations): reuse animatorSet to prevent high memory usage - #6930

Merged
ADjenkov merged 1 commit into
releasefrom
djenkov/css-animations-leak
Feb 21, 2019
Merged

ADjenkov merged 1 commit into
releasefrom
djenkov/css-animations-leak

Conversation

Copy link
Copy Markdown
Contributor

Do not recreate native animators when looping animation inside keyframe animation.

Android API > 23: Reusing animatorSet instead of recreating it on every animation iteration. This results in even less memory usage. Recreating it on every loop will lead to higher memory peaks (that will be collected a bit later by the GC)

Side note: pulse CSS animation consist multiple keyframes that animate the scale of an object to different values in a different times. New Animation is created for every keyframe in the keyframes rule. These animations (keyframes) will play sequentially and will repeat all together for specified iterations (or infinite). Every Animation (keyframe) has a AnimatorSet that holds multiple Animators depending on the number of properties it should animate. We do not want to recreate these Animators on every Animation (keyframe) replay.

Fix #5731

ADjenkov self-assigned this Feb 19, 2019
ghost added the in progress label Feb 19, 2019

Copy link
Copy Markdown
Contributor

test package_version#latest

ADjenkov force-pushed the djenkov/css-animations-leak branch from de0c106 to bb3b656 Compare February 20, 2019 15:02

Copy link
Copy Markdown
Contributor Author

test package_version#latest

ADjenkov merged commit 7236d32 into release Feb 21, 2019
ADjenkov deleted the djenkov/css-animations-leak branch February 21, 2019 08:49
ghost removed the in progress label Feb 21, 2019

lock Bot commented Feb 21, 2020

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock Bot locked and limited conversation to collaborators Feb 21, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL