Open
Conversation
Previously, with dynamic distribution the benchmark was taking too long
Worker threads now invoke user-supplied `code worker_yield_t::operator()(index_type)` between jobs so real-time audio workloads can tier `code micro_yield()` before falling back to sleeps.
Default worker path now delegates to the configured `code micro_yield_t` instead of hardwiring `code std::this_thread::yield()`, keeping custom wait strategies effective.
Drops the extra template parameter by using `code if constexpr` so worker threads hand their index to `code worker_yield_t` only when that overload exists.
Co-authored-by: Guillaume Riou <griou@sat.qc.ca> Co-authored-by: Guillaume Riou <117857232+guillaumeriousat@users.noreply.github.com>
The package and its dependencies are outdated. They don't list compatible Zig versions and the builds fail even on 0.15.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
__cpp_exceptionsmicro_yield(thread_id)useThanks to @steeve from @zml for the inspiration to look into Zig and to @guillaumeriousat for C++ extensions 🤗
Things currently under consideration: