Skip to content

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

Merged
jfernandez merged 1 commit intomainfrom
app-loop-refactor
Feb 23, 2024
Merged

Refactor thread loop in App struct for more accurate sample period#7
jfernandez merged 1 commit intomainfrom
app-loop-refactor

Conversation

@jfernandez
Copy link
Copy Markdown
Owner

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
@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