Skip to content

Add a synchronous fast-path to PipeStream.ReadAsync - #1849

Merged
Rob-Hague merged 1 commit into
sshnet:developfrom
Rob-Hague:pipestream-readasync
Oct 19, 2026
Merged

Rob-Hague merged 1 commit into
sshnet:developfrom
Rob-Hague:pipestream-readasync

Conversation

@Rob-Hague

Copy link
Copy Markdown
Collaborator

When data is available and the lock is uncontended, we can complete synchronously. Improves throughput by up to 10x in this happy state, depending on the read size.

When data is available and the lock is uncontended, we can complete synchronously.
Improves throughput by up to 10x in this happy state, depending on the read size.
@Rob-Hague
Rob-Hague force-pushed the pipestream-readasync branch from 79bd4dd to 4dbe147 Compare October 17, 2026 14:09
@Rob-Hague
Rob-Hague merged commit 6ef5c3e into sshnet:develop Oct 19, 2026
10 of 12 checks passed
@Rob-Hague
Rob-Hague deleted the pipestream-readasync branch October 19, 2026 17:52
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.

2 participants