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

Skip to content
Commit 26d5225a authored by Songchun Fan's avatar Songchun Fan
Browse files

[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
parent 34660c5e
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