ActionScript 2的VS ActionScript 3的性能 [英] ActionScript 2 vs ActionScript 3 performance

查看:239
本文介绍了ActionScript 2的VS ActionScript 3的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有的标准整数,数组,函数,类等,性能在这2种语言(编译器)?

Any benchmarks of Integer, Array, Function, Class, etc, performance in these 2 languages (compilers)?

比较也将是有益的。

推荐答案

由于AS3在不同的虚拟机(AVM2)比AS2(AVM)也已显著的性能改进与引进AS3的运行。一般情况下,由AVM2执行的运算code运行约10倍比老AVM类似的运算code的运行速度更快。当然,这并不意味着一切都在AS3是比AS2快10倍的倍。随着引进AS3的所有的显示的功能,或所有典型的闪存API的,还没有在速度仅逻辑和code执行处理的算术部分增加。例如。应用模糊滤镜上的视觉元素一样快与AS2,因为它与AS3然而,这样做3D转换的速度要快得多用AS3。 AS3还介绍了一些新的数据类型,可以提高性能,以及(所有尽管这并不一定总是这种情况)。

Since AS3 runs in a different virtual machine (AVM2) than AS2 (AVM) there have been made significant performance improvements with the introduction of AS3. In general, opcode executed by AVM2 runs about 10x faster than similar opcode running in the old AVM. This of course does not mean that everything in AS3 is 10x times faster than with AS2. With the introduction of AS3 all the display functions, or all the typical Flash API's, haven't increased in speed only the logic and arithmetic part of the code execution process. E.g. applying a blur filter on a visual element is just as fast with AS2 as it is with AS3 however, doing 3D transformations is much faster with AS3. AS3 introduces also some new data types which can increase performance as well (all though that doesn't necessarily always be the case).

下面是有关AS3的性能信息的一些链接:

Here are some links with information about AS3 performance:

  • Avoid ints in AS3
  • Types in AS3
  • AS3 Performance Tests
  • Flash AS3 and AVM2: Performance Tuning

这篇关于ActionScript 2的VS ActionScript 3的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆