Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Thread safety #25
I like 095e0c1 but the other two commits are possibly unnecessary. The enumeration commit definitely is unneeded (the block based enumeration isn't magically any better than a for in loop).
If you could redo this pull request with just the thread safety changes I'd be happier to accept it.
The only advantage of "for" loop is backward compatibility with older iOS versions.
However, with the help of our project below you can use block enumeration API even on iOS 3.
According to our benchmarks, block version of NSDictionary enumeration is 3X faster than "for" loop
Not sure if it's O(N) but it definitely performs better.