Monday, August 27, 2007

Cocoa Microbenchmarks

Mike Ash:

We all know that premature optimization is the root of all evil. But a recent conversation brought to mind that we often don’t really know the runtime costs of the code we write. While we should be writing foremost for correctness and clarity, having an idea of these speeds is good, especially when we get it into our heads that some operation is much more costly than it really is. With that in mind, I compiled a list of common Cocoa operations and how much time they require at runtime.

Comments RSS · Twitter

Leave a Comment