Optimising in Swift – 50x Speedup From One Keyword Change
blog.human-friendly.com
blog.human-friendly.com
I got a 50x speedup changing from a class to a struct ( before that my version was slower than the original using NSMutable arrays to store the objects.
The blog post has more details but I wanted to add this to give more context than the title.