mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
a73bb0e53e28b5b23a527aac7b9ffbec6f264efe
## 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 [73bcdfbae5](https://github.com/facebook/react/commit/73bcdfbae57545aa8f88ecdf67426275610b5573)
Please do not delete this branch
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%