[Android] [PATCH 08/14] libvlc: add Media, MediaList, MediaDiscoverer
Thomas Guillem
thomas at gllm.fr
Sat Jan 17 17:03:29 CET 2015
On Fri, Jan 16, 2015, at 20:51, Edward Wang wrote:
> On 2015-01-16 08:12, Thomas Guillem <thomas at gllm.fr> wrote:
> > + private SparseArray<Media> mMediaArray = new SparseArray<Media>();
>
> Just curious, but is there any particular reason for using a SparseArray
> versus a LinkedList or some other structure? Does it have better
> performance or something?
SparseArray allow to put object at a specified index without having to
create a array of index+1 size.
According to the libvlc api, it can send media at a random index, so I
chose a SparseArray.
>
> Regards,
> Edward Wang
> _______________________________________________
> Android mailing list
> Android at videolan.org
> https://mailman.videolan.org/listinfo/android
More information about the Android
mailing list