Memoise & cache the result of renderers, so we don't recalculate views multiple times.

This commit is contained in:
Tom Wilkie
2016-01-22 15:05:01 -08:00
parent fd8696ffa2
commit b8daa02488
6 changed files with 201 additions and 156 deletions

View File

@@ -121,6 +121,7 @@ var (
ServerHostLoad15Metric = report.MakeMetric().Add(Now, 0.16).WithFirst(Now.Add(-16 * time.Second))
Report = report.Report{
ID: "test-report",
Endpoint: report.Topology{
Nodes: report.Nodes{
// Node is arbitrary. We're free to put only precisely what we