forked from tensorflow/tensorboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve rerender of vz_line_chart (tensorflow#3524)
We identified few several expensive operations going on underneath Plottable. - When we modified dataset() attached to a plot, Plottable recalculated domain which in turn triggered redraw of the plot. - Plot redraw is scheduled but repeated `clearTimeout` and `setTimeout` take considerable time which was the large part of the dataset update - Changing a dataset caused us to updateSpecialDataset N times (N = number of runs) We addressed the issue by: - `commit` API after making all the changes - remember which runs/dataset were changed - update datasets only once per commit We did not address: - autoDomain recomputing the bounds on every data changes. - there is no programmatical way to disable auto domain unless we change the domain which causes, for instance, zoom level to reset Empirically, the render time: - toggling run on the selector went down from 1740ms to 273ms - triggering the log scale went down from 315ms to 264ms - from ~670ms to ~620ms when measured from mouse up Do note that this change does not improve time for other charting operation like zoom, smoothing changes, and etc...
- Loading branch information
1 parent
0aee979
commit 27d0023
Showing
4 changed files
with
60 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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