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

Skip to content
Commit 37f5bb9e authored by Hai Zhang's avatar Hai Zhang
Browse files

Make AndroidPackage.(requested|implicit)Permissions a Set.

It is often checked for contains(), and for packages that request 300+
permissions the difference between binary search and linear search may
be significant. On the other hand, iterating over an ArraySet via
iterator isn't super slow either - mostly just one more allocation for
the iterator and should be worth the trade-off.

Bug: 284205103
Test: presubmit
Change-Id: I525f5ec8efb0ec402a8cde3e64fd66dea4b20277
parent 1fb1ca5c
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