Skip to content

Conversation

anonrig
Copy link
Contributor

@anonrig anonrig commented Oct 8, 2025

Overally reduces unnecessary allocations/copies.

Copy link

changeset-bot bot commented Oct 8, 2025

🦋 Changeset detected

Latest commit: ca06ec1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@opennextjs/aws Patch
app-pages-router Patch
app-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Oct 8, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/aws@996

commit: ca06ec1

@anonrig anonrig force-pushed the yagiz/optimize-streams branch from c488a6d to 8dd3dd1 Compare October 8, 2025 16:07
anonrig and others added 2 commits October 8, 2025 12:52
Co-authored-by: Victor Berchet <victor@suumit.com>
Co-authored-by: Victor Berchet <victor@suumit.com>
const { done, value } = await reader.read();
if (done) break;
chunks.push(value);
totalLength += value.length;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does there need to be validation that value actually is a typed array?

@anonrig anonrig force-pushed the yagiz/optimize-streams branch from 65810fe to edbfbf6 Compare October 8, 2025 18:57
@anonrig anonrig force-pushed the yagiz/optimize-streams branch from edbfbf6 to 3d21628 Compare October 8, 2025 19:00
@anonrig anonrig force-pushed the yagiz/optimize-streams branch from 3d21628 to ca06ec1 Compare October 8, 2025 19:01
Copy link
Contributor

@conico974 conico974 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks

@anonrig
Copy link
Contributor Author

anonrig commented Oct 10, 2025

@conico974 would you mind landing this?

@vicb vicb merged commit 5f3dc4b into opennextjs:main Oct 10, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Oct 10, 2025
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.

5 participants