perf: rebuild the waiting tree only when the boot changed
The screen keeps the projected tree, milestones and tally and rebuilds them after boot changes, or every 100 ms so finished units still fade on time. Release, 200 units, under load: a frame from the cached projection costs 30-40% of a full frame (0.35-0.53 ms against 1.2-1.9 ms).
This commit is contained in:
1 parent
092ed41ffb
commit
552d1170ed
7 files changed
+107
-31
No files matched your search
@@ -47,7 +47,7 @@ pub struct Timeline<'a> {
|
||||
pub origin: Duration,
|
||||
pub now: Duration,
|
||||
pub root_switches: Vec<Duration>,
|
||||
pub milestones: Vec<MilestoneRow>,
|
||||
pub milestones: &'a [MilestoneRow],
|
||||
pub finished: Vec<&'a FinishedRun>,
|
||||
pub running: Vec<RunningRun<'a>>,
|
||||
pub colors: &'a TimelineColors,
|
||||
|
||||
Reference in new issue
Block a user