I have built an image cache which is an ArrayCollection containing images. I have built functionality so that the cache can hold a max of 250 images. However, the images can be of a different size, so it's better to limit the total memory size of all images in the ArrayCollection.
Does anyone know how I can get the total memory size of an ArrayCollection without looping through all the items in the ArrayCollection?