Skip to content

[Fizz] Count Boundary bytes that may contribute to the preamble in the request byteSize #34059

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

Merged

Conversation

gnoff
Copy link
Collaborator

@gnoff gnoff commented Jul 30, 2025

Stacked on #34058

When tracking how large the shell is we currently only track the bytes of everything above Suspense boundaries. However since Boundaries that contribute to the preamble will always be inlined when the shell flushes they should also be considered as part of the request byteSize since they always flush alongside the shell. This change adds this tracking

@gnoff gnoff requested a review from sebmarkbage July 30, 2025 22:44
@meta-cla meta-cla bot added the CLA Signed label Jul 30, 2025
@gnoff gnoff requested a review from eps1lon July 30, 2025 22:44
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jul 30, 2025
@react-sizebot
Copy link

react-sizebot commented Jul 30, 2025

Comparing: 9877346...fe98847

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 530.04 kB 530.04 kB = 93.63 kB 93.63 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 654.48 kB 654.48 kB = 115.34 kB 115.34 kB
facebook-www/ReactDOM-prod.classic.js = 674.42 kB 674.42 kB = 118.68 kB 118.68 kB
facebook-www/ReactDOM-prod.modern.js = 664.84 kB 664.84 kB = 117.03 kB 117.03 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against fe98847

}).pipe(writable);
});

console.log({errors});
Copy link
Collaborator

Choose a reason for hiding this comment

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

rm

…e request byteSize

When tracking how large the shell is we currently only track the bytes of everything above Suspense boundaries. However since Boundaries that contribute to the preamble will always be inlined when the shell flushes they should also be considered as part of the request byteSize since they always flush alongside the shell. This change adds this tracking
@gnoff gnoff force-pushed the count-preamble-boundaries-in-request-bytes branch from 8aa1f60 to fe98847 Compare July 31, 2025 01:12
@gnoff gnoff merged commit 8de7aed into facebook:main Jul 31, 2025
242 checks passed
@gnoff gnoff deleted the count-preamble-boundaries-in-request-bytes branch July 31, 2025 01:19
github-actions bot pushed a commit that referenced this pull request Jul 31, 2025
…e request byteSize (#34059)

Stacked on #34058

When tracking how large the shell is we currently only track the bytes
of everything above Suspense boundaries. However since Boundaries that
contribute to the preamble will always be inlined when the shell flushes
they should also be considered as part of the request byteSize since
they always flush alongside the shell. This change adds this tracking

DiffTrain build for [8de7aed](8de7aed)
github-actions bot pushed a commit to haphanviet/react that referenced this pull request Jul 31, 2025
…e request byteSize (facebook#34059)

Stacked on facebook#34058

When tracking how large the shell is we currently only track the bytes
of everything above Suspense boundaries. However since Boundaries that
contribute to the preamble will always be inlined when the shell flushes
they should also be considered as part of the request byteSize since
they always flush alongside the shell. This change adds this tracking

DiffTrain build for [8de7aed](facebook@8de7aed)
github-actions bot pushed a commit to haphanviet/react that referenced this pull request Jul 31, 2025
…e request byteSize (facebook#34059)

Stacked on facebook#34058

When tracking how large the shell is we currently only track the bytes
of everything above Suspense boundaries. However since Boundaries that
contribute to the preamble will always be inlined when the shell flushes
they should also be considered as part of the request byteSize since
they always flush alongside the shell. This change adds this tracking

DiffTrain build for [8de7aed](facebook@8de7aed)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Aug 3, 2025
…e request byteSize (facebook#34059)

Stacked on facebook#34058

When tracking how large the shell is we currently only track the bytes
of everything above Suspense boundaries. However since Boundaries that
contribute to the preamble will always be inlined when the shell flushes
they should also be considered as part of the request byteSize since
they always flush alongside the shell. This change adds this tracking

DiffTrain build for [8de7aed](facebook@8de7aed)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Aug 3, 2025
…e request byteSize (facebook#34059)

Stacked on facebook#34058

When tracking how large the shell is we currently only track the bytes
of everything above Suspense boundaries. However since Boundaries that
contribute to the preamble will always be inlined when the shell flushes
they should also be considered as part of the request byteSize since
they always flush alongside the shell. This change adds this tracking

DiffTrain build for [8de7aed](facebook@8de7aed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants