mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
933e17949b
Summary: The default priority for AsyncTask is THREAD_PRIORITY_BACKGROUND which puts the thread in a limited cgroup that can utilize ~10% CPU time. Because the whole TTI depends on this task we should run it on a normal priority. The priority will be reset for the nest task and this has been true since donut: https://github.com/android/platform_frameworks_base/blob/donut-release/core/java/android/os/AsyncTask.java Reviewed By: astreet Differential Revision: D3417232 fbshipit-source-id: e1e35f82b35b31ff7ebf4fc59509ca2df21e2bdd