Fix viewport navigation performance by caching graph compilations (#1477)

Only recompile the graph and update thumbnails if the graph has actually changed. (Future work: only send just the thumbnails that actually changed instead of resending all of them.)

* Cache graph compilations

* Only update thumbnails if the graph has changed

* Remove debug statement and fix warnings
This commit is contained in:
Dennis Kobert
2023-11-26 14:21:17 +00:00
committed by GitHub
parent 4ea01345c2
commit 661f61348e
2 changed files with 40 additions and 23 deletions
@@ -1099,7 +1099,6 @@ impl DocumentMessageHandler {
let mut space = 0;
for layer_node in folder.children(self.metadata()) {
data.push(layer_node.to_node());
info!("Pushed child");
space += 1;
if layer_node.has_children(self.metadata()) {
path.push(layer_node.to_node());