Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67a4b1b2 authored by Alex Careja's avatar Alex Careja
Browse files

Boost Zygote to fifo for top-app forks when using fifo ui

When forking for a top app, if the system is using fifo ui, momentarily boost Zygote to fifo priority, execute the fork and reset only the Zygote's scheduling policy back to SCHED_OTHER. This way, we accelerate the cold top-app launches by scheduling the app's main thread at the top app priority sooner by tens to hundreds of milliseconds.

Tested using Perfetto tracing.

Flag: com.android.internal.os.zygote_early_fifo_boost
Bug: 397918406
Change-Id: Ic1113bc72da78af3192b1fc83fb6c4ec893e4792
parent 6fed6d75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment