Change trackerList to a LinkedList 74/14474/1
authorRobert Varga <rovarga@cisco.com>
Sun, 25 Jan 2015 08:50:11 +0000 (09:50 +0100)
committerRobert Varga <rovarga@cisco.com>
Sun, 25 Jan 2015 09:07:19 +0000 (10:07 +0100)
The trackers are being added to the end and usually remove in a linear
fashion. An ArrayList's remove() method makes sure the backing array is
packed -- which means we end up copying the array over and over again.

Changing the trackerList to a LinkedList removes the need for copying at
the expense of memory footprint and cache locality.

Change-Id: I3e40487798eb64713ed4526f53a0a8c385a9a778
Signed-off-by: Robert Varga <rovarga@cisco.com>

No differences found