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

Skip to content
Commit 47c2b571 authored by Cheng Li's avatar Cheng Li
Browse files

Reduce the frequency of calls to get_device_api_level

This API call is made more than 100 times a second, and it's
contributing to more than 1% of total CPU cycles in the Audio Codec HAL
process.

Given that this is static information that doesn't change frequently, we
can move the API call to the constructor and cache the information to be
used later.

Test: manual testing by playing a video

Bug link: https://buganizer.corp.google.com/issues/244443227

Change-Id: I35b215d834bd71d9c725b76dcbc0d9aa597faa34
parent e40c6041
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