commit | 0888276a1c6cd4077770844615848674de21dab3 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Thu Mar 05 13:13:55 2015 -0800 |
committer | Andreas Gampe <agampe@google.com> | Thu Mar 05 13:13:55 2015 -0800 |
tree | b2b5cee8031e30ed4043b77b3b267afa3be34983 | |
parent | 6695b9920d15f8d9a17d6b0c66b863d1c2e38584 [diff] |
Frameworks/base: Use ArraySet more explicitly In KeySetManagerService, use ArraySet more explicitly. Avoid for-each loops. Collections API methods on ArraySet are not very efficient. Iterators incur two object allocations: a helper and the actual iterator object. During boot, about 4.5K such calls are made. Using the ArraySet more explicitly like an ArrayList/array avoids the overhead. Bug: 19617481 Change-Id: I25df334fa1d4be3210667fb1404e3c43f2585049