commit | 46c5e17aa884273057bf52b6fb49dfe7cdf97356 | [log] [tgz] |
---|---|---|
author | Christopher Wiley <wiley@google.com> | Thu May 26 15:57:29 2016 -0700 |
committer | Mitchell Wills <mwills@google.com> | Fri Aug 26 13:22:42 2016 -0700 |
tree | 407139569819152eb53616bfbf533bf6c12a37c1 | |
parent | f972edcae7386d0dfc596aaa01e97d039dd1e0e2 [diff] |
Use an ArrayMap instead of HashMap to track tether interfaces Since the number of tetherable interfaces should be small (e.g. <10), the computational cost of a looking up objects in an ArrayMap is negligible, and the memory required is less than a HashMap. While here, remove some unused imports. Change-Id: I3fb7091cfb93697d2fc6388b843d60f7e8e7e1a6 Test: Compiles. (cherry picked from commit 36f6f4e394750e4989d78f38a31ab8f2f66c07f7)