-
Notifications
You must be signed in to change notification settings - Fork 49.8k
Put perf integration behind a feature flag #11455
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
Conversation
trueadm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM minus nits
| export const enablePersistentReconciler = true; | ||
|
|
||
| export function addUserTimingListener() { | ||
| invariant(false, 'Not implemented.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a clearer message?
| export const enablePersistentReconciler = false; | ||
|
|
||
| export function addUserTimingListener() { | ||
| invariant(false, 'Not implemented.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
|
fwiw I would really like a flag to expiriment with disabling this in devmode in open source. Our performance in development on React 16 has plummeted (it’s comparable in most scenarios in production with a few major regressions). The experiment is to see how much we’re paying for the usertiming integration in dev. |
|
You can disable it manually in the npm bundle and then see if it helps :-) if it does, I'm open to exposing this somehow. |
* Enable User Timing API integration with a feature flag * Expose a way to toggle user timing flag in www * Update ReactNativeCSFeatureFlags.js * Update ReactFeatureFlags.js
Builds on #11453.
The plan is to keep it
__DEV__only for open source, but enable it based on a feature flag internally so we can experiment with using it in production for some users.I have verified this doesn't inflate the open source build sizes.
I also exposed a ref counting interface to toggle the flag from www product code.