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

Async Progress Callback #145

Merged
merged 3 commits into from
May 24, 2024
Merged

Async Progress Callback #145

merged 3 commits into from
May 24, 2024

Conversation

ZachNagengast
Copy link
Contributor

@ZachNagengast ZachNagengast commented May 24, 2024

This PR will run the progress callback on separate thread to avoid blocking the decoder loop. If the progress callback is doing a heavy workload it would previously slow down the the decoding waiting for it to complete, this change will allow the callback to be called without waiting. This will potentially result in more loops of the decoder while waiting for the callback to make an early stopping decision, but faster overall.

@ZachNagengast ZachNagengast merged commit e4c82c8 into main May 24, 2024
6 checks passed
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