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