How to catch perf regressions due to compiler bailouts? #35
Unanswered
aeharding
asked this question in
General Questions
Replies: 3 comments 1 reply
-
Probably not what you ask for but there's a test tool to assert React re-renders: https://github.com/callstack/reassure |
Beta Was this translation helpful? Give feedback.
0 replies
-
At the moment there's no good way, but I think your suggestion to make |
Beta Was this translation helpful? Give feedback.
0 replies
-
I wonder if we could snapshot a list of optimized components and make that a commit hook. Would make regressions noticeable and trackable. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am starting to remove
useCallback
anduseMemo
from compiled components in my codebase for code readability.However, I want to make sure that the component is always compiled and the compiler won't bailout in the future (which could cause performance regressions).
Is there a way to enforce compilation (and throw error if not compileable)? We have
"use no memo";
- perhaps we need"use memo";
which won't do anything except tell the linter to enable all error severity warnings for the component?Beta Was this translation helpful? Give feedback.
All reactions