开发者

ActionScript 3.0: Array vs. Vector.<Object>

Is t开发者_如何学编程here any point to using Vector.<Object>, or should I just stick with Array?


Performance. If you are doing operations that store/retrieve tons of values from a dataset, a vector will probably perform much faster than an array. (ie: millions of values, not say, 100 values in an array).


.. and Vector is an easy way to create typed array lists, which is good for debugging and application stability


If you need to target earlier flash versions (before Flash Player 10) stick with array

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜