summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Songchun Fan <schfan@google.com> 2024-01-08 13:55:57 -0800
committer Songchun Fan <schfan@google.com> 2024-01-08 13:56:01 -0800
commit26d5225a2d3d733e8257e1f8199beb379db8f4f8 (patch)
tree5ef16c40b159b8a849a3ab05ad732971822fcb44 /libs/androidfw/FileStream.cpp
parent34660c5e2a193f57bd649c0bff3d6750db444f5a (diff)
[pm] improve the performance of recomputeComponentVisibility
We don't need to snapshot each individual elements of the ArraySet. It's more efficient to use "new WatchedArrayset" / "new ArraySet" instead of snapshot(). The former uses a single "arrayCopy" wherease the latter uses multiple "append". BUG: 315494540 Test: perf test Change-Id: I27fc026605af6bbabb21027a21e226674efb91aa
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions