mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-10 09:29:39 +08:00
Summary: This diff replaces all MountItem classes with a bunch of static C functions that do the same job as classes did. Seems, originally we overestimated the complexity of MountItem classes and that they ended up being notably trivial. Now, maintaining that even longer would mean paying for abstractions and allocations that we don't really need and writing a lot of tedious code. Besides that, the one particular change that will be introduced in the coming diffs is not particularly fit very well in the existing class-based model. This change also should save us many hundreds of allocations and atomic counters bumps, so maybe we can get a millisecond-or-two win. This diff does not introduce any practical behavioral/logical changes in the mounting layer. Reviewed By: mdvacca Differential Revision: D14893764 fbshipit-source-id: 6f1247923ae36f29c12a7d358e2d496cf6c3e298