Why array performance is high when compared to collections? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why array performance is high when compared to collections?

9th Aug 2016, 5:16 AM
Siva Lakshmana Kumar
Siva Lakshmana Kumar - avatar
1 Answer
+ 1
Actually, they are considered comparable in speed. Citation for where you got arrays are faster perhaps? Generally, collections are used for their flexibility. It really shouldn't make a difference which one you use in terms of speed.
9th Aug 2016, 6:25 AM
James
James - avatar