diff options
| author | 2022-04-21 21:08:15 +0000 | |
|---|---|---|
| committer | 2022-04-22 15:34:49 +0000 | |
| commit | 31c17f46f28ef5b463fd189ab8cf0fefffb8cd66 (patch) | |
| tree | 6f1d439ae32328f201e71f246bda8c1787353aa8 /libs/androidfw/StringPool.cpp | |
| parent | 06ac74c54f96d9a0eda2b310becdad5db328684f (diff) | |
Reduce lock contention on setting write.
Context: go/pm-settings-persistence
0. The main issue is a background thread holding to 2 major and 1
less-major locks for a long time.
1. Refactor Settings.writeStateForUser* not to take PMS lock in advance.
2. Add an option to move PMS-locked processing into PMS handler thread,
executing on a big core with DEFAULT priority.
3. Make XML serialization use its own lock.
4. Move XML serialization + IO to background thread.
5. (separate CL) slightly optimize XML serialization. It's still an AI
to move it to Fast/Binary serializers.
Bug: 220083428
Test: presubmit
Change-Id: I428d46d90c3ceef55a83358f5f3b2cddbce60efd
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions