Cache the next "interesting" time for a timed element
Keep a cached value for the next "interesting"[1] time in a timed element. This cache is updated every time we get a new interval, change the end of an interval or trigger a repeat. This reduces the time spent in SMILTimeContainer::NextInterestingTime(), and lays the foundation for improved scheduling of interval updates in the future. The term "interesting" is replaced by "interval" in related function names and variables. [1] The next time that an interval either starts, ends or repeats. Bug: 998526 Change-Id: I082d37b2000bc8d691363d87c22309013823664b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1844818 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by:Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#703672}
Showing
Please register or sign in to comment