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

[Fiber] Profiler - Use two separate functions instead of branch by flag #30957

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

sebmarkbage
Copy link
Collaborator

Nit: I don't trust flags in hot code. While it can take somewhat longer to compile two functions and JIT them. After that they don't need to check branches. Also makes it clearer the purpose.

Copy link

vercel bot commented Sep 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 8:43pm

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Sep 13, 2024
@react-sizebot
Copy link

react-sizebot commented Sep 13, 2024

Comparing: 5deb782...7153749

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 +0.05% 1.82 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 509.12 kB 509.13 kB = 91.08 kB 91.08 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 = 514.10 kB 514.03 kB = 91.80 kB 91.79 kB
facebook-www/ReactDOM-prod.classic.js = 604.67 kB 604.67 kB = 106.85 kB 106.85 kB
facebook-www/ReactDOM-prod.modern.js = 580.95 kB 580.95 kB = 103.00 kB 103.00 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against b24682f

@sebmarkbage sebmarkbage merged commit 3d95c43 into facebook:main Sep 14, 2024
184 checks passed
github-actions bot pushed a commit that referenced this pull request Sep 14, 2024
…ag (#30957)

Nit: I don't trust flags in hot code. While it can take somewhat longer
to compile two functions and JIT them. After that they don't need to
check branches. Also makes it clearer the purpose.

DiffTrain build for [3d95c43](3d95c43)
github-actions bot pushed a commit that referenced this pull request Sep 14, 2024
…ag (#30957)

Nit: I don't trust flags in hot code. While it can take somewhat longer
to compile two functions and JIT them. After that they don't need to
check branches. Also makes it clearer the purpose.

DiffTrain build for commit 3d95c43.
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.

4 participants