mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: [Changelog][Internal] The diff changes underlying storage types used by different enums that are used in ViewProps data structure, together with some eventual field rearranging to reduce padding overhead. This **shaves off 128 bytes** from each `ViewProps` instance, which is **a ~10% improvement**. Given that an average RN app may have thousands of shadow tree nodes, and correspondingly `ViewProps` instances in flight (e.g. Oculus Store has 2-3K of them nominally), the overall memory win is about **300K+** for this change only. Plus slightly better cache locality, which never a bad thing either. Reviewed By: mdvacca Differential Revision: D42372127 fbshipit-source-id: d3a832af2b2e89f50a5b8e04d24d0df92869ea4d