Commit 6ae981b
Use static values for undefined and auto lengths (#1030)
Summary:
X-link: facebook/react-native#47305
X-link: facebook/yoga#1734
Profiling in a test app with many undefined lengths shows this saves roughly 33% of time spent in Yoga.
## Changelog
[General][Fixed] Reduce amount of time spent in Yoga by reusing statically defined values in StyleLength::getLength()
Reviewed By: yungsters, mdvacca
Differential Revision: D652077531 parent d4e82f9 commit 6ae981b
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
0 commit comments