mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 03:46:45 +00:00
memoise top-level rendering
This deals with browsers requesting the same rendering for the same timespan when no new reports have been received for that timespan.
This commit is contained in:
@@ -435,6 +435,7 @@ func (r *Registry) Add(ts ...APITopologyDesc) {
|
||||
defer r.Unlock()
|
||||
for _, t := range ts {
|
||||
t.URL = apiTopologyURL + t.id
|
||||
t.renderer = render.Memoise(t.renderer)
|
||||
|
||||
if t.parent != "" {
|
||||
parent := r.items[t.parent]
|
||||
|
||||
Reference in New Issue
Block a user