Even though this has minimal impact on my code right now I would like to understand if an operation is more costly than the other :-).
It's faster to remove all objects. The costly thing about a NSMutableArray is extending it's internal list when it runs out of capacity.
Have a look at this blog post.
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