Although this has minimal impact on my code right now, I would like to understand if the operation is more expensive than the other :-).
Faster to delete all objects. The workaround about NSMutableArray extends its internal list when it runs out of capacity.
Take a look at this post.
Source: https://habr.com/ru/post/913609/More articles:Java checks if image has transparency - javahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/913605/concat-keydown-event-keys-to-one-c-wpf-string&usg=ALkJrhguaAOpZSLMcKO85rRMeecjoQtJDgonCreateDrawableState never calls - androidAvoiding the @ sign inside JSDoc comments in NetBeans - javascriptWhich aligns a 16-byte border value in x86 - optimizationWhy are function argument names irrelevant in C ++ declarations? - c ++2d Landscape Creation Using Perlin Noise (Tile Based) - c ++iOS UITableView: set background color as gradient using CAGradientLayer - iosHow to find the difference between two dates using javascript - javascriptOpen an external page in Popup in jQuery Mobile - jqueryAll Articles