-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
feat(effect): refactorings to improve performance, reduce memory usage #2345
Commits on Nov 16, 2020
-
feat(effect): use Class for effect
Reduces memory usage for (computed) refs by 25% and improves creation performance
Configuration menu - View commit details
-
Copy full SHA for 44dedfb - Browse repository at this point
Copy the full SHA 44dedfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for f9ed4c3 - Browse repository at this point
Copy the full SHA f9ed4c3View commit details -
feat(effect): set 'allowRecurse' as param
Move out of the ReactiveEffectOptions in an effort to remove the necessity of creating this object for most use cases, saving memory and performance.
Configuration menu - View commit details
-
Copy full SHA for 134e33c - Browse repository at this point
Copy the full SHA 134e33cView commit details -
feat(effect): reduce memory consumption
Move several options to params, so that an object is not required for watchers or computeds. This reduces memory. On top of that, place some optional params on the prototype unless non-default.
Configuration menu - View commit details
-
Copy full SHA for 6b26c38 - Browse repository at this point
Copy the full SHA 6b26c38View commit details -
feat(effect): rename _effect to effect
There's no point in underscoring the effect property of the runner.
Configuration menu - View commit details
-
Copy full SHA for d649a4d - Browse repository at this point
Copy the full SHA d649a4dView commit details -
feat(apiWatch): extract function that doesn't need to be in function …
…body 1. One variable less on the stack 2. Smaller functions means less time to optimize
Configuration menu - View commit details
-
Copy full SHA for 9bd002b - Browse repository at this point
Copy the full SHA 9bd002bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3981a86 - Browse repository at this point
Copy the full SHA 3981a86View commit details -
feat(effect): remove out-of-bounds check
Out-of-bounds should be avoided always, for performance reasons. In practice, some benchmarks (especially 'write ref, read 1000 computeds') showed significant (30%) improvement after this change.
Configuration menu - View commit details
-
Copy full SHA for de906b7 - Browse repository at this point
Copy the full SHA de906b7View commit details -
chore(effect): add comment to targetMap
Explain that refs store their deps in a local property.
Configuration menu - View commit details
-
Copy full SHA for 295e46c - Browse repository at this point
Copy the full SHA 295e46cView commit details -
feat(effect): refactor triggering for non-refs
Improves performance.
Configuration menu - View commit details
-
Copy full SHA for 4ed374c - Browse repository at this point
Copy the full SHA 4ed374cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 911fde1 - Browse repository at this point
Copy the full SHA 911fde1View commit details