When you look at some Objective-C code, you often see class properties defined as non-atomic. Why? Does it give you some performance boost when you’re not working with threads, or is there some other reason?
When you look at some Objective-C code, you often see class properties defined as
Share
nonatomicaccessors are faster because they don’t have to lock. That’s about all there is to it. From the documentation: