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.
|