Skip to content

Migrate processBoxShadow tests to Fantom#55820

Open
sammy-SC wants to merge 2 commits intofacebook:mainfrom
sammy-SC:export-D94796393
Open

Migrate processBoxShadow tests to Fantom#55820
sammy-SC wants to merge 2 commits intofacebook:mainfrom
sammy-SC:export-D94796393

Conversation

@sammy-SC
Copy link
Contributor

Summary:
changelog: [internal]

Add Fantom integration test for processBoxShadow. Uses fantom_flags enableOptimizedBoxShadowParsing:* to automatically test both code paths.

Differential Revision: D94796393

Summary:
Hoist regex patterns to module-level constants to avoid recompiling them on every function call. This optimization targets a hotspot identified via JS sampling profiler.

Benchmark results show 6-7% improvement in "views with large props and styles" tests:
- render 100 views with large props/styles: 9.48ms → 8.89ms (-6.2%)
- render 1500 views with large props/styles: 137.2ms → 127.5ms (-7.0%)

Reviewed By: javache, NickGerleman

Differential Revision: D92153667
Summary:
changelog: [internal]

Add Fantom integration test for processBoxShadow. Uses `fantom_flags enableOptimizedBoxShadowParsing:*` to automatically test both code paths.

Differential Revision: D94796393
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 28, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 28, 2026

@sammy-SC has exported this pull request. If you are a Meta employee, you can view the originating Diff in D94796393.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants