Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(elements): improve performance of real-time reporting (#2498)
Instead of recalculating every time an event comes through, only react to event updates at an interval. By using the `debounceTime` function from rxjs we can tell rxjs to ignore events for a given time period, throttling the amount of times we have to recalculate and redraw the report elements.
- Loading branch information
1 parent
3bb8b12
commit 42f8dcf
Showing
3 changed files
with
63 additions
and
37 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