mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
8f6aee0df5
Summary: Fabric uses a cache where it stores the result of the text measurement in C++ (to avoid unnecessary text measurement that are very costly). This cache has a "max size" of 256 and this size is not enough to store all the texts we have in the screen In my tests, the amount of texts being measured are ~290 and after scrolling many times they increase to 611. This diff increases the size of the TextMeasure to 1024 for users in the experiment. As a result this improves performance of HoverEvents by +5x times (see test plan) changelog: [internal] internal Reviewed By: JoshuaGross Differential Revision: D33112788 fbshipit-source-id: e15feecf0f54da62b252892d37a64fb4ead29e22