react-native/ReactCommon
Samuel Susla 6b16f2e7a7 Add throttling mechanism to background executor
Summary:
Changelog: [internal]

Background executor performs unnecessary operations when second `completeRoot` message from React arrives before first `completeRoot` was finished. This produces unnecessary `ShadowViewMutations`.

Mechanism:
Everytime `completeRoot` is received, before the call is dispatched on the background queue, `completeRootEventCounter_DO_NOT_USE_` is incremented.
Inside `ShadowTree::tryCommit` we check if the value has been incremented to determine if another `completeRoot` is queued.

Reviewed By: JoshuaGross

Differential Revision: D24419160

fbshipit-source-id: 11e19026feca01db6c8981b093a691a6b58a006f
2020-10-26 05:04:53 -07:00
..
better Extend 'better' module to compile in OSS 2020-08-06 11:53:04 -07:00
callinvoker remove most of tvOS remnants from the code (#29407) 2020-09-28 21:26:41 -07:00
cxxreact Add ReactMarker::logTaggedMarkerWithInstanceKey 2020-10-01 14:16:32 -07:00
hermes Add HeapProfiler.collectGarbage implementation 2020-10-19 15:07:18 -07:00
jsengineinstance
jsi Codegen: Make react-native-codegen BUCK deps OSS-compatible 2020-10-22 17:09:29 -07:00
jsiexecutor Change the memory warning forced GC to use the level name 2020-10-03 10:11:06 -07:00
jsinspector remove most of tvOS remnants from the code (#29407) 2020-09-28 21:26:41 -07:00
libraries/fbcore/src/test/java/com/facebook/powermock Fix RN OSS build (#29221) 2020-06-25 11:09:42 -07:00
microprofiler use xplat BUCK attribution 2020-05-15 21:55:52 -07:00
react Add throttling mechanism to background executor 2020-10-26 05:04:53 -07:00
reactperflogger Log QPL Events from TM + NM, when Perf. Logging is enabled 2020-10-10 02:51:59 -07:00
runtimeexecutor remove most of tvOS remnants from the code (#29407) 2020-09-28 21:26:41 -07:00
yoga remove most of tvOS remnants from the code (#29407) 2020-09-28 21:26:41 -07:00
common.mk
React-Fabric.podspec remove most of tvOS remnants from the code (#29407) 2020-09-28 21:26:41 -07:00
ReactCommon.podspec TurboModule Android: move SampleTurboModule impl and spec to OSS 2020-09-29 18:41:14 -07:00