On Mar 8, 2012, at 1:19 PM, Brian Lambert wrote: > In many simple scenarios, especially when contention is very low, > @synchronized will be the best choice because it's trivial to get right and > high-performance.
@synchronized is easy-to-use, for sure, but it is far from high-performance. The first result that Google turns up for benchmarks comparing @synchronized, mutexes, and OSSpinLocks shows @synchronized to be almost an order of magnitude slower than the competition: http://perpendiculo.us/?p=133 Charles _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com