Skip to content

Add discard() and optimal writeTo#1224

Merged
mtdowling merged 1 commit into
mainfrom
io-improvements
May 27, 2026
Merged

Add discard() and optimal writeTo#1224
mtdowling merged 1 commit into
mainfrom
io-improvements

Conversation

@mtdowling
Copy link
Copy Markdown
Member

Discard is used for ensuring a datastream is drained if needed, but a no-op when no drain is needed. Added an optimal writeTo for MultiByteBufferDataStream.

What behavior changes?

Describe the observable difference in behavior before and after this change.

Why is this change needed?

Explain the motivation: bug, feature request, refactor, performance, etc.

How was this validated?

List tests added, benchmarks run, or manual verification performed.

What should reviewers focus on?

Point reviewers to the files or sections that contain the interesting logic.

Additional Links

Related issues, design docs, or prior art.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Discard is used for ensuring a datastream is drained if needed, but a
no-op when no drain is needed. Added an optimal writeTo for
MultiByteBufferDataStream.
@mtdowling mtdowling enabled auto-merge (rebase) May 27, 2026 22:13
@mtdowling mtdowling merged commit dad07a5 into main May 27, 2026
6 checks passed
@mtdowling mtdowling deleted the io-improvements branch May 27, 2026 23:06
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