Friday, January 8, 2010

How is Actionscript's performance compared to Javascript?

I'm asking about the performance of Actionscript compared to Javascript. I know that Flash files are compressed into bytecode and actionscript is running on a virtual machine. From this fact, my initial guess is that Actionscript will perform better (once initialized and resides in RAM) than Javascript. Javascript, on the other hand, is a scripting language. It's interpreted on-the-fly, thus performance-wise, JS should not outperform Actionscript.





Any comments/ answers/ more questions are very welcome!How is Actionscript's performance compared to Javascript?
No script is going to be overly hot for performance - if you want power in that sense then you need to start using a compiled language - C would be best.





I'm intrigued as to why a comparison between these two scripting languages is required though - they both have very different purposes, so its largely irrelevant which works better.How is Actionscript's performance compared to Javascript?
dammit, i forgot to vote for myself. the best answer in this case sucks, and its not what the guy was asking for.. Report Abuse

In terms of performance for high volume calculations i would have to say that Actionscript would be able to perform such calculations seemlessly. Report Abuse

Actionscript 3 on the Flash 9 player is the best for high volume calculations since it employs something JS does not, trait based object architecture. the flash 9 virtual machine is also ultra optimized to the point that real time 3D can be rendered seemlessly. Report Abuse

According to me the comparison itself is wrong AS is mainly to support the interactivity %26amp; in some animation purposes,but java script not meant only for above reasons.u can replace JS with AS but it will be like ronaldo play cricket maybe he can play but he is not a specialist cricket player.honestly as a animator i prefer AS rather than JS.
good question!! the sources below seem to touch base on performance issues..
http://www.oddhammer.com/actionscriptper鈥?/a>

No comments:

Post a Comment