drop visible map recomputation time to 100ms (from 1000ms). lines fill in much faster when scrolling

This commit is contained in:
sawka 2023-11-16 23:57:36 -08:00
parent d9c7b61c91
commit 3f57ee8c46

View File

@ -68,7 +68,7 @@ class LinesView extends React.Component<
}); });
this.visibleMap = new Map(); this.visibleMap = new Map();
this.collapsedMap = new Map(); this.collapsedMap = new Map();
this.computeVisibleMap_debounced = debounce(1000, this.computeVisibleMap.bind(this)); this.computeVisibleMap_debounced = debounce(100, this.computeVisibleMap.bind(this));
} }
@boundMethod @boundMethod