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

Refactor thread loop in App struct for more accurate sample period #7

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

jfernandez
Copy link
Contributor

This PR refactors the App struct statistic gathering loop to be more efficient when handling the items vec and have less lock contention. Additionally, we now adjust the sleep duration to maintain a 1-second sample period, accounting for loop processing time.

@jfernandez jfernandez merged commit 5e281a4 into main Feb 23, 2024
1 check passed
@jfernandez jfernandez deleted the app-loop-refactor branch February 23, 2024 04:15
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.

1 participant