cmu-delphi / forecast-eval

delphi.cmu.edu/forecast-eval
MIT License
5 stars 2 forks source link

Consider caching old common location set to check if we should rerender the truth plot, instead of using an observer #272

Open nmdefries opened 1 year ago

nmdefries commented 1 year ago

To save plot rendering/computation time in https://github.com/cmu-delphi/forecast-eval/pull/271, we could also save the previous locationsIntersect to a user session-specific global and check during the next call to summaryPlot() if it has changed. If locationsIntersect has changed, make a new truth plot.

Potential problems: