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
精彩评论