forked from rainmeter/rainmeter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MeasureProcess: Remove use of background thread
Previously, a background thread woke up to update the process list 250ms. This can be reduced to a function that caches the results and updates them if 250ms has elapsed since the last call. We also now store the process names lowercased in a std::unordered_set to avoid iterating over a std::vector. Both of these optimizations should reduce the amount of work done.
- Loading branch information
Showing
2 changed files
with
34 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters