Optimising in Swift – 50x Speedup From One Keyword Change(blog.human-friendly.com)
blog.human-friendly.com
Optimising in Swift – 50x Speedup From One Keyword Change
http://blog.human-friendly.com/optimising-swift-with-functional-style-50x-speed-boost-from-changing-1-keyword
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.