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

Skip to content
Commit c1a4a0db authored by Kweku Adams's avatar Kweku Adams
Browse files

Use a single lock and add a flag.

Using separate locks adds a little bit of overhead to the get method.
Switch to a single lock to minimize the performance cost.

Also add a control flag to disable caching in the future, if so desired.

Bug: 257054989
Test: atest CorePerfTests:AccountManagerPerfTest
Change-Id: I5bbcc54f28cbe3c434995af8b3452debfc68c4ee
parent 01cd6f81
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