Android List overhead performance

Monkey Targets Forums/Android/Android List overhead performance

AdamRedwoods(Posted 2013) [#1]
List enumeration on Android (monkey v75) eats up a surprising amount of time. It's mostly negligible, but clocks cycles are precious on 3D mobile!

It's this routine in Enumerator:
	Method HasNext:Bool()
		While _curr._succ._pred<>_curr
			_curr=_curr._succ
		Wend
		Return _curr<>_list._head
	End 


The while/wend is not pretty for a large number of entries in List. Is this specific to JavaVM? I got rid of the while/wend loop, had no problems, and saved about 140ms for my specific game (not per frame, specific only to me, keep in mind).

anyways, something to think about.


Gerry Quinn(Posted 2013) [#2]
That loop seems odd to me - surely in a well-formed list it should never do anything?