Is there a reason to stick to Arrays as the default list data structure in AS3 if you are targeting Flash Player 10? Why not use Vectors (typed arrays) as default throughout your program since they are:
- faster
- type checked
Does it perform badly or incur higher memory overheads? Any reason to use arrays anymore?
I’m answering my own question based on what I learnt of the issue.
Vectors are faster for these datatypes ONLY: — (proof)
Arrays are preferable for all other types:
Vectors are more limited to work with:
Vectors are more troublesome:
Vectors can be easier to debug: