Files
react-native/ReactCommon
Joshua Gross d815be1c99 Fix Optimized Differ (was generating extraneous Create mutations)
Summary:
When we call `.erase` on the TinyMap, it sets the key of the element to 0. When we call `.begin()` later, TinyMap will sometimes, but not always, clean up the underlying Vector. This means that *most* of the time, underlying erased elements will be removed from the Vector; but sometimes erased elements will still be there when iterating over it.

This was causing us to generate extra "Create" mutations.

To fix this, for now we just check for zeroed-out elements when iterating over the vector.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D21389371

fbshipit-source-id: 1e641050987d40a3f3e31499dcb373cfb28ae6f8
2020-05-04 16:04:51 -07:00
..
2020-04-03 09:47:42 -07:00
2020-04-03 09:47:42 -07:00
2020-04-21 22:43:24 -07:00
2020-04-16 13:43:07 -07:00
2020-02-28 12:46:49 -08:00
2020-02-28 12:46:49 -08:00
2020-04-28 16:57:33 -07:00
2020-04-07 19:07:19 -07:00