How To Boost Your iOS Code Performance by Reducing Collection Type Initialisation

A tip for optimising speed for your Swift and Objective-C code

Penny Ng
Better Programming
Published in
2 min readMay 25, 2022

--

Photo by CHUTTERSNAP on Unsplash

Creating a new collection type occupies resources. Frequently creating collection type objects, for example, initialising a dictionary in a for-loop or in a function that is frequently executed, might consume a considerable…

--

--

A passionate self-taught  iOS developer. Write to record my learning and share the knowledge