making java as fast as javascript

104 views
Skip to first unread message

Justin Donaldson

unread,
Jul 15, 2012, 2:29:57 PM7/15/12
to Haxe
I never would've thought this is the case, but the google v8 engine seems to do some call site optimization that can beat java in math and vector performance:


Maybe a FastMath class is a good idea, with macro methods that detect integer arguments and switch to more efficient algorithms.

Best,
-Justin

--
blog: http://www.scwn.net
twitter: sudojudo

Cauê Waneck

unread,
Jul 15, 2012, 3:20:33 PM7/15/12
to haxe...@googlegroups.com
Very nice info. I really never would have thought about that :)
I can replace Math to FastMath for Haxe very easily, btw

2012/7/15 Justin Donaldson <jdona...@gmail.com>
Reply all
Reply to author
Forward
0 new messages