Compile in -style PRETTY to see how GWT compiles your Java code down to JS. 
There won't be getX/getY (they'll be inlined), at least in the x,y case (and 
if there are, they'll be "staticified": getX(point) instead of 
point.getX()). And you'll probably see type coercion/checking in the array 
case (and if that's the case, as I suspect, it's what causes the difference 
in performance between your two implementations).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/H0-_ephFQ2UJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to