diff options
| author | 2023-02-15 15:48:25 -0800 | |
|---|---|---|
| committer | 2023-02-22 18:37:00 -0800 | |
| commit | 6c5d9a1aa4db1c9a5ab6d6adffd2033d08d7a0fd (patch) | |
| tree | 6575a26b9951b340c2cfeee214935fb52e374e27 /libs/androidfw/ApkParsing.cpp | |
| parent | 52a61a8b44307f0399f1a1a95882ce81527e12c5 (diff) | |
SettingsProvider enhanced cache
Instead of one generation tracker per table, we now use one generation
tracker per setting.
Change overview: https://docs.google.com/document/d/1Hoqnyu-zdqlcqoQPcan2cuV45pXxh_dLtI0kOsOVuX0/edit?resourcekey=0-UoWA1aosEP-04skWe3Ylsw
The testSettingsValueConsecutiveRead now performs 10x better because the
update of one setting doesn't invalidate the caches of other settings.
+ Changed server caching behavior so that nothing is cached until a
setting is queried.
+ Also moves cache check to before the readable check to further reduce
read-access time, since if a setting is cached, it must be readable
for the caller process.
BUG: 228619157
Test: atest com.android.providers.settings.GenerationRegistryTest
Test: atest SettingsProviderTest
Test: atest SettingsProviderPerformanceTest
Test: atest android.provider.NameValueCacheTest
Change-Id: Ie519dadadc13c7211a0f1f5de53f498dfc6edf77
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions