perf: small improvements

This commit is contained in:
Willem Vanhulle committed 2026-10-16 11:42:52 +02:00
1 parent bca6637599
commit a39797cbd2
2 files changed
+2 -3

No files matched your search

-1
View File
@@ -2,7 +2,6 @@
Description=Live dependency tree of boot jobs
DefaultDependencies=no
IgnoreOnIsolate=yes
After=systemd-vconsole-setup.service
Before=display-manager.service shutdown.target
Conflicts=shutdown.target
+2 -2
View File
@@ -144,11 +144,10 @@ fn watch(
let mut frame: u64 = 0;
let mut painted_connections = feed.connections;
let mut last_full_repaint = Instant::now();
let mut next_frame = Instant::now() + FRAME_INTERVAL;
let mut next_frame = Instant::now();
let requests = RequestWatch::open();
let mut password_entry: Option<PasswordEntry> = None;
loop {
feed.pump(state)?;
if state.phase != origin_phase {
origin = BootOrigin::read();
origin_phase = state.phase;
@@ -225,5 +224,6 @@ fn watch(
None => {}
}
}
feed.pump(state)?;
}
}