Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreaded component refresh #1231

Closed
wants to merge 1 commit into from

Conversation

softdevca
Copy link
Contributor

@softdevca softdevca commented Mar 19, 2024

This PR causes the bench_refresh_components benchmark to go from 1,517,282 ns/iter to 142,299 ns/iter when the "multithread" feature is enabled, which it is by default. This massive improvement in speed is because reading from the /sys/class/hwmon/ files in Linux can be slow. In particular reading the CPU and chipset temperatures were taking about 60 ms each on my system.

@softdevca softdevca closed this Mar 19, 2024
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.

None yet

1 participant