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

Skip to content
Commit a517e9e3 authored by Sadrul Chowdhury's avatar Sadrul Chowdhury
Browse files

Boost process priority during fork.

The zygote process sets MAX priority for the child process after a
fork if it is a 'high priority fork' (e.g. for top-app). However,
the zygote does a fair amount of work before the fork, and can take
up some amount of time due to getting descheduled. This introduces
latency in app-launch, especially on low-power devices.

Fix this by setting the zygote process priority to MAX for a
high-priority fork early on, and reset it back to DEFAULT
afterwards.

Bug: 323891634
Test: manually
Change-Id: Iac1ea81531f59ee6245c73530f2dd639209421f7
parent a0ce6b06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment