I know that an ArrayCollection is a wrapper over an Array, but what I wanted to know is when to choose one over the other? Will the over usage of ArrayCollections result in performance?
The main advantage of ArrayCollection is collectionChange event which allows to get advantage of data binding with it.
Some others are:
ICollectionView which allows to create a cursor and iterate collection with it.If you don't need any of these advantages use simple Array.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With