Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize previous style calculation in
styleUpdater
(#3950)
## Summary This PR contains two little optimizations in `styleUpdater`: 1. Since we never use `oldValues` again (because references the same object as `state.last` does before we overwrite it in the very same line), we can re-use this instance instead of creating a new one. 2. Since we just calculated the difference between the new and old styles, we can overwrite `oldValues` just with `diff` instead of `newValues` because the values that are not present in `diff` are the same in `oldValues` and `newValues`. Co-authored-by: @kmagiera ## Test plan Just check if BokehExample works.
- Loading branch information