Skip to content

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

Open
DaniPopes wants to merge 1 commit into
bootandy:masterfrom
DaniPopes:less-system-info
Open

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

Conversation

@DaniPopes

Copy link
Copy Markdown

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

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.

2 participants