Skip to content

fix: don't request full system info on startup - #583

Merged
bootandy merged 1 commit into
bootandy:masterfrom
DaniPopes:less-system-info
Aug 10, 2026
Merged

fix: don't request full system info on startup#583
bootandy merged 1 commit into
bootandy:masterfrom
DaniPopes:less-system-info

Conversation

@DaniPopes

Copy link
Copy Markdown
Contributor

init_rayon is calling System::new_all which, at least on Linux, parses every single entry in /proc, issuing multiple syscalls per entry. On my system this currently amounts to ~0.5s of overhead on any invocation of dust.

Use System::new since init_rayon only needs refresh_memory.

`init_rayon` is calling `System::new_all` which, at least on Linux,
parses every single entry in /proc, issuing multiple syscalls per
entry. On my system this currently amounts to ~0.5s of overhead
on any invocation of `dust`.

Use `System::new` since `init_rayon` only needs `refresh_memory`.
@arcuru

arcuru commented Jun 24, 2026

Copy link
Copy Markdown

Just to cross-link, this fix is also in #574

@bootandy
bootandy merged commit 9ab9553 into bootandy:master Aug 10, 2026
@DaniPopes
DaniPopes deleted the less-system-info branch August 10, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants