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

Skip to content
Commit 167823f5 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent afa3ba52
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