commit | 26d5225a2d3d733e8257e1f8199beb379db8f4f8 | [log] [tgz] |
---|---|---|
author | Songchun Fan <schfan@google.com> | Mon Jan 08 13:55:57 2024 -0800 |
committer | Songchun Fan <schfan@google.com> | Mon Jan 08 13:56:01 2024 -0800 |
tree | 5ef16c40b159b8a849a3ab05ad732971822fcb44 | |
parent | 34660c5e2a193f57bd649c0bff3d6750db444f5a [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