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

Accumulate reads in streams PumpToReader #1264

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Oct 2, 2023

When pumping from a JavaScript-backed stream to a WritableStreamSink, we want to ensure that small reads are accumulated into larger chunks to prevent a large number of small writes on the sink.

Partially addresses: #1235

@jasnell jasnell force-pushed the jsnell/streams-pumploop-accumulate branch from 1945c7d to ea28d5f Compare October 2, 2023 22:41
src/workerd/api/streams/standard.c++ Outdated Show resolved Hide resolved
src/workerd/api/streams/standard.c++ Outdated Show resolved Hide resolved
src/workerd/api/streams/standard.c++ Outdated Show resolved Hide resolved
src/workerd/api/streams/standard.c++ Show resolved Hide resolved
When pumping from a JavaScript-backed stream to a WritableStreamSink,
we want to ensure that small reads are accumulated into larger chunks
to prevent a large number of small writes on the sink.
@jasnell jasnell force-pushed the jsnell/streams-pumploop-accumulate branch from ea28d5f to 85bfbc8 Compare October 3, 2023 14:20
@jasnell jasnell merged commit 7c05696 into main Oct 3, 2023
7 checks passed
jasnell added a commit that referenced this pull request Oct 10, 2023
ohodson pushed a commit that referenced this pull request Oct 10, 2023
@fhanau fhanau deleted the jsnell/streams-pumploop-accumulate branch December 4, 2023 22:29
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.

3 participants