mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
0cb0be987812a9bc3fc4efb993eaa9823ed42738
## Summary This PR introduces a faster version of the `addProperties` function. This new function is basically the `diffProperties` with `prevProps` set to `null`, propagated constants, and all the unreachable code paths collapsed. ## How did you test this change? I've tested this change with [the benchmark app](https://github.com/react-native-community/RNNewArchitectureApp/tree/new-architecture-benchmarks) and got ~4.4% improvement in the view creation time. DiffTrain build for commit https://github.com/facebook/react/commit/73bcdfbae57545aa8f88ecdf67426275610b5573.
react-fbsource-import
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%