Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<669f16e131d4a5ddc026ffecc6893575>>
* @generated SignedSource<<1b7656b36283a43728ffd60af3e30d08>>
*/

/**
Expand Down Expand Up @@ -53,7 +53,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi

override fun enableAndroidAutoOffscreenCompositingForElevation(): Boolean = false

override fun enableAndroidTextMeasurementOptimizations(): Boolean = false
override fun enableAndroidTextMeasurementOptimizations(): Boolean = true

override fun enableAsyncDiskCacheCheckInMultiSourceImageAndroid(): Boolean = false

Expand Down Expand Up @@ -117,7 +117,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi

override fun enablePreallocatedPropsDiffOnInsertAndroid(): Boolean = false

override fun enablePreparedTextLayout(): Boolean = false
override fun enablePreparedTextLayout(): Boolean = true

override fun enablePropsUpdateReconciliationAndroid(): Boolean = false

Expand Down Expand Up @@ -165,7 +165,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi

override fun perfMonitorV2Enabled(): Boolean = false

override fun preparedTextCacheSize(): Double = 200.0
override fun preparedTextCacheSize(): Double = 1000.0

override fun preventShadowTreeCommitExhaustion(): Boolean = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<52db1adfed5fd99e4ca145b50dc413a0>>
* @generated SignedSource<<4f230970c9c4fc4e5e07e4b40ed46a58>>
*/

/**
Expand Down Expand Up @@ -90,7 +90,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
}

bool enableAndroidTextMeasurementOptimizations() override {
return false;
return true;
}

bool enableAsyncDiskCacheCheckInMultiSourceImageAndroid() override {
Expand Down Expand Up @@ -218,7 +218,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
}

bool enablePreparedTextLayout() override {
return false;
return true;
}

bool enablePropsUpdateReconciliationAndroid() override {
Expand Down Expand Up @@ -314,7 +314,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
}

double preparedTextCacheSize() override {
return 200.0;
return 1000.0;
}

bool preventShadowTreeCommitExhaustion() override {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const definitions: FeatureFlagDefinitions = {
ossReleaseStage: 'none',
},
enableAndroidTextMeasurementOptimizations: {
defaultValue: false,
defaultValue: true,
metadata: {
dateAdded: '2025-07-01',
description:
Expand Down Expand Up @@ -556,7 +556,7 @@ const definitions: FeatureFlagDefinitions = {
ossReleaseStage: 'none',
},
enablePreparedTextLayout: {
defaultValue: false,
defaultValue: true,
metadata: {
dateAdded: '2025-05-01',
description: 'Enables caching text layout artifacts for later reuse',
Expand Down Expand Up @@ -816,10 +816,10 @@ const definitions: FeatureFlagDefinitions = {
ossReleaseStage: 'none',
},
preparedTextCacheSize: {
defaultValue: 200,
defaultValue: 1000,
metadata: {
description: 'Number cached PreparedLayouts in TextLayoutManager cache',
expectedReleaseValue: 200,
expectedReleaseValue: 1000,
purpose: 'operational',
},
ossReleaseStage: 'none',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<4eb26b4190d023d26a50f54b6e3ea5eb>>
* @generated SignedSource<<03a2b16f97c3bb25b3bfa5e6a8c572ed>>
* @flow strict
* @noformat
*/
Expand Down Expand Up @@ -288,7 +288,7 @@ export const enableAndroidAutoOffscreenCompositingForElevation: Getter<boolean>
/**
* Enables various optimizations throughout the path of measuring text on Android.
*/
export const enableAndroidTextMeasurementOptimizations: Getter<boolean> = createNativeFlagGetter('enableAndroidTextMeasurementOptimizations', false);
export const enableAndroidTextMeasurementOptimizations: Getter<boolean> = createNativeFlagGetter('enableAndroidTextMeasurementOptimizations', true);
/**
* Runs multi-source image disk-cache checks asynchronously on Android.
*/
Expand Down Expand Up @@ -416,7 +416,7 @@ export const enablePreallocatedPropsDiffOnInsertAndroid: Getter<boolean> = creat
/**
* Enables caching text layout artifacts for later reuse
*/
export const enablePreparedTextLayout: Getter<boolean> = createNativeFlagGetter('enablePreparedTextLayout', false);
export const enablePreparedTextLayout: Getter<boolean> = createNativeFlagGetter('enablePreparedTextLayout', true);
/**
* When enabled, Android will receive prop updates based on the differences between the last rendered shadow node and the last committed shadow node.
*/
Expand Down Expand Up @@ -512,7 +512,7 @@ export const perfMonitorV2Enabled: Getter<boolean> = createNativeFlagGetter('per
/**
* Number cached PreparedLayouts in TextLayoutManager cache
*/
export const preparedTextCacheSize: Getter<number> = createNativeFlagGetter('preparedTextCacheSize', 200);
export const preparedTextCacheSize: Getter<number> = createNativeFlagGetter('preparedTextCacheSize', 1000);
/**
* Enables a new mechanism in ShadowTree to prevent problems caused by multiple threads trying to commit concurrently. If a thread tries to commit a few times unsuccessfully, it will acquire a lock and try again.
*/
Expand Down
Loading