mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Disable shadow tree introspection by default (#43578)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43578 Changelog: [internal] We have a feature to do some validation of the mount operations when committing new trees in Fabric. That's very slow but it was ok before because we were only doing this in debug mode and in the JS thread. We're moving some of this work to the UI thread instead and we're seeing an impact on scroll performance. This disables this feature by default but leaves it in code to enable it when necessary for debugging. Reviewed By: NickGerleman, sammy-SC Differential Revision: D55138795 fbshipit-source-id: 45ca47ae2562cecb070691bf33d95c9108a9eca3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f446cf6464
commit
8a2cf6866d
@@ -26,13 +26,11 @@
|
||||
// Enables some Shadow Tree introspection features (maintains a StubViewTree,
|
||||
// and logs prev/next tree and mutations if there are any discrepancies). If you
|
||||
// define this, also define `RN_DEBUG_STRING_CONVERTIBLE`.
|
||||
#if (defined(REACT_NATIVE_DEBUG) && defined(WITH_FBSYSTRACE))
|
||||
#define RN_SHADOW_TREE_INTROSPECTION 1
|
||||
#endif
|
||||
// #define RN_SHADOW_TREE_INTROSPECTION 1
|
||||
|
||||
// This enables certain object-to-string debug conversions to be compiled.
|
||||
// Enable if `RN_SHADOW_TREE_INTROSPECTION` is enabled.
|
||||
#ifdef RN_SHADOW_TREE_INTROSPECTION
|
||||
// Enable if `REACT_NATIVE_DEBUG` is enabled.
|
||||
#ifdef REACT_NATIVE_DEBUG
|
||||
#define RN_DEBUG_STRING_CONVERTIBLE 1
|
||||
#else
|
||||
#define RN_DEBUG_STRING_CONVERTIBLE 0
|
||||
|
||||
Reference in New Issue
Block a user