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
@@ -1,5 +1,6 @@
|
||||
mod boot_change;
|
||||
pub mod boot_origin;
|
||||
mod boot_projection;
|
||||
mod job_ingestion;
|
||||
mod reached_milestones;
|
||||
mod unit_facts;
|
||||
@@ -9,6 +10,7 @@ use std::{collections::HashMap, time::Duration};
|
||||
|
||||
pub use self::{
|
||||
boot_change::BootChange,
|
||||
boot_projection::BootProjection,
|
||||
reached_milestones::MilestoneRow,
|
||||
unit_facts::{ActiveState, Activity, JobKind, JobResult, UnitFacts, UnitKind},
|
||||
waiting_tree::{RowStatus, TreeNode, TreeRow, flatten_forest},
|
||||
|
||||
Reference in new issue
Block a user