Ruslan Shestopalyuk and Facebook GitHub Bot
7252c66292
Optimize size of an ViewProps instance by reducing enum storage sizes
...
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
2023-01-05 23:35:56 -08:00
..
2022-10-24 04:35:28 -07:00
2022-10-13 05:07:59 -07:00
2021-12-30 15:11:21 -08:00
2023-01-03 11:11:37 -08:00
2022-10-03 04:11:02 -07:00
2022-10-13 05:07:59 -07:00
2022-07-13 07:09:34 -07:00
2022-10-03 05:38:31 -07:00
2022-07-13 07:09:34 -07:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2022-10-03 05:38:31 -07:00
2022-10-03 05:38:31 -07:00
2022-12-24 06:40:42 -08:00
2022-12-24 06:40:42 -08:00
2022-10-13 05:07:59 -07:00
2021-12-30 15:11:21 -08:00
2023-01-03 11:11:37 -08:00
2022-04-26 05:11:05 -07:00
2022-10-13 05:07:59 -07:00
2022-03-08 04:28:51 -08:00
2021-12-30 15:11:21 -08:00
2022-04-26 05:11:05 -07:00
2022-04-26 05:11:05 -07:00
2023-01-03 11:11:37 -08:00
2023-01-03 11:11:37 -08:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2022-10-13 05:07:59 -07:00
2021-12-30 15:11:21 -08:00
2023-01-03 11:11:37 -08:00
2021-12-30 15:11:21 -08:00
2022-10-13 05:07:59 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 05:07:59 -07:00
2022-11-18 11:51:39 -08:00
2022-10-13 05:07:59 -07:00
2022-11-15 08:06:45 -08:00
2022-11-18 11:51:39 -08:00
2022-10-13 05:07:59 -07:00
2022-11-15 08:06:45 -08:00
2021-12-30 15:11:21 -08:00
2022-10-17 05:57:32 -07:00
2022-10-17 05:57:32 -07:00
2022-11-18 11:51:39 -08:00
2022-10-02 03:38:07 -07:00
2022-11-15 12:17:18 -08:00
2022-11-15 12:17:18 -08:00
2021-12-30 15:11:21 -08:00
2022-10-13 05:07:59 -07:00
2023-01-03 11:11:37 -08:00
2022-10-13 05:07:59 -07:00
2022-09-06 07:01:17 -07:00
2022-10-13 05:07:59 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 05:07:59 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 05:07:59 -07:00
2022-10-13 05:07:59 -07:00
2022-08-11 04:53:34 -07:00
2021-12-30 15:11:21 -08:00
2022-08-30 08:48:26 -07:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2022-10-13 05:07:59 -07:00
2023-01-05 23:35:56 -08:00
2022-12-24 06:40:42 -08:00
2022-07-29 17:32:35 -07:00
2022-10-13 05:07:59 -07:00
2022-12-06 04:47:51 -08:00
2022-10-13 05:07:59 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 05:07:59 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 05:07:59 -07:00
2022-10-02 02:46:25 -07:00
2022-10-13 05:07:59 -07:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2022-10-13 05:07:59 -07:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00