Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After building nsmutablearray should i convert it to nsarray for performance benefit?

Wondering, After building nsmutablearray should i convert it to nsarray for performance benefit? If i am going to keep and use that array for quite sometime.

like image 319
Saran Avatar asked Mar 28 '13 11:03

Saran


1 Answers

No. The conversion itself will cost time and CPU cycles and you won't gain anything from the conversion.

like image 78
trojanfoe Avatar answered Sep 17 '22 15:09

trojanfoe