summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Yohei Yukawa <yukawa@google.com> 2024-03-07 15:15:11 -0800
committer Yohei Yukawa <yukawa@google.com> 2024-03-07 15:15:11 -0800
commit1e4c0ddb120eaa1513c71241505d111835648a24 (patch)
treee28de0cf61b807ca423f3154a3a4bc8f493fb4d9 /libs/androidfw/ResourceTimer.cpp
parent53ce87191521946e89b6bac10a083ef7081ad868 (diff)
Avoid redundant AdditionalSubtypeMapRepository#putAndSave()
This is a follow up CL to my previous CLs [1][2][3], which aimed to fix bugs that additional subtypes were cleared only when the current user's IME APKs were updated but not for other users'. What this CL does it to avoid unnecessary file operations by making sure that AdditionalSubtypeMapRepository#putAndSave() gets called only once from MyPackageMonitor#onFinishPackageChangesInternal(). This guarantees that for each package callback transactions additional subtype persistent file will be saved at most once, compared to multiple times in the previous implementation. Hopefully this helps mitivate the potential performance regression discussed in Bug 327861441. The observable behavior should remain the same semantically. [1]: I07e32739f486d960c9dd22476120fa35bf1899e4 0c5feb229eb54fca1b886fcf2adde148dd50b2c4 [2]: I10aa547f0de607ef3c0ba26764dac0585c40c843 2501e749abb30ce745f22ae33869cfb11200f37d [3]: If42c518765171ff8cb51af000542671676cd3801 87218eb283fa92c0139a2bbe478e12e532914fcc Bug: 309837937 Bug: 322062773 Bug: 327861441 Bug: 328098968 Test: presubmit Change-Id: I5b3dae7579feb412517251c6c8ad770b49831600
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions