Repository navigation
io_uring pipelinemaxxing - #8897
Merged
Merged
Conversation
Contributor
Author
|
Maaaybe worth adding some comments... 😅 |
This comment was marked as resolved.
This comment was marked as resolved.
ffuugoo
commented
May 4, 2026
| if !has_pending && self.runtime.in_progress == 0 { | ||
| return Ok(None); | ||
| } | ||
| let next = self.runtime.completed().next(); |
Contributor
Author
There was a problem hiding this comment.
First, check if any operations completed already
Comment on lines
+186
to
+187
| if next.is_some() && enqueued > 0 { | ||
| self.runtime.submit_and_wait(0)?; |
Contributor
Author
There was a problem hiding this comment.
If some operation completed already, we don't need to wait for any more operations... but we can submit more operations to be processed in the background (so that they may be completed by the time we call wait again)
Comment on lines
+188
to
189
| } else if next.is_none() && enqueued + self.runtime.in_progress > 0 { | ||
| self.runtime.submit_and_wait(1)?; |
Contributor
Author
There was a problem hiding this comment.
If there are no completed operations available, but there are some operations pending (either enqueued but not yet submitted, or submitted but not yet completed), we submit all enqueued operations and wait for 1 operation to complete
Comment on lines
+192
to
+194
| let Some(result) = next.or_else(|| self.runtime.completed().next()) else { | ||
| return Ok(None); | ||
| }; |
Contributor
Author
There was a problem hiding this comment.
- Take already completed operation (if one was available at the top of
wait) - Or take newly completed operation (if there were pending operations, and we waited for some operation to complete)
- Or simply return
None(if no operations, pending or completed, were available)
xzfc
approved these changes
May 4, 2026
timvisee
approved these changes
May 5, 2026
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.
Restructure
IoUringPipeline::waitso that we submit operations more aggressively for better potential parallelism utilization.All Submissions:
devbranch. Did you create your branch fromdev?New Feature Submissions:
cargo +nightly fmt --allcommand prior to submission?cargo clippy --workspace --all-featurescommand?Changes to Core Features: