diff options
author | Andreas Gampe <agampe@google.com> | 2015-03-05 13:13:55 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-03-05 13:13:55 -0800 |
commit | 0888276a1c6cd4077770844615848674de21dab3 (patch) | |
tree | b2b5cee8031e30ed4043b77b3b267afa3be34983 /rs/java/android/renderscript/Allocation.java | |
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
Diffstat (limited to 'rs/java/android/renderscript/Allocation.java')
0 files changed, 0 insertions, 0 deletions