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

Skip to content
Commit f3903e9f authored by John Reck's avatar John Reck
Browse files

Fix regression in getSharedPreferences performance

Only do access checks if there's a cache miss. If there's
a cache hit then those checks have necessarily already
passed once so we don't need to repeatedly do them
on every access.

Before:
timeCachedGetSharedPreferences_mean=126084

After:
timeCachedGetSharedPreferences_mean=362

Test: ran perf test
Change-Id: I51f0186f8e66c05ea0e5a457930377d1460dea17
parent f6d33e57
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