diff options
| author | 2024-05-10 11:09:38 +0000 | |
|---|---|---|
| committer | 2024-05-10 11:09:38 +0000 | |
| commit | 167823f5333822d412e58e8af3f95cc06bef9ebc (patch) | |
| tree | ebcd280198ca30f319069b3122eaaf5e168450c0 /wifi/java | |
| parent | afa3ba5227bf7bd356a40770190e8d973ade514d (diff) | |
Reduce unnecessary overhead of for-each input flags
This avoids creating ImmutableCollections.ListItr when performing
InputMonitor#populateInputWindowHandle for each window.
The iteration on a pure array is usually 3x faster than collection.
Bug: 163976519
Test: CtsWindowManagerDeviceActivity
Change-Id: I5513d6098d3c370f1dd1500f53af942269babd62
Diffstat (limited to 'wifi/java')
0 files changed, 0 insertions, 0 deletions