-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[WIP] Fela optimizations #12445
[WIP] Fela optimizations #12445
Conversation
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Potential regressions comparing to master
Perf comparison
Perf tests with no regressions
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: aa90e07c6f8e27a28a3a883fb4febc2cd2eb8ae2 (build) |
Updates fela's `renderRule` method to compute classNames on a more granular level: by property rather than by style object. Rather than generating a full className for an entire style object at once, it now walks the style object and generates classes for each individual property. This allows us to avoid reprocessing styles that should already be cached. NOTE: this approach does not work for monolithic classNames, since that treats an entire style object as a single entity. So, do not use this if you are using that mode.
Hey @davezuko, can you please open a new PR and include these changes and #12289. What impact on performance will be? |
@layershifter I see you've already done some benchmarks of your own. For clarity, I'll cherry-pick your changes into my branch to compare here as well. |
@davezuko Are you still working on this or can we close it? (Or close and then reopen when it's ready?) |
Opening this PR up early so I can get feedback from the PR bots on performance impacts and screener results.
Microsoft Reviewers: Open in CodeFlow