summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Sadrul Chowdhury <sadrul@google.com> 2024-02-07 03:34:31 +0000
committer Sadrul Chowdhury <sadrul@google.com> 2024-02-07 18:46:03 +0000
commita517e9e34b94ece9ae22e50ffbed0e1cb832a110 (patch)
tree060f9043453a5051b75654888ea2758c132d8df0 /api/api.go
parenta0ce6b06e48bd282aa675575149b9228f59cb4df (diff)
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
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions