NSLog and Performance

Just a note to those who are tempted to troubleshoot performance while in debug mode. All those NSLog statements (if you’re like me, you have hundreds of them for debugging/testing as you go) can have a definite, visible impact on performance. Try turning debug mode off and see if you still need to tweak anything. You do have a wrapper for NSLog so that your debug statements go away when you switch to release, right?
Of course, Shark will probably point you in the right direction. But wouldn’t you then smack your own forehead?

This entry was posted in Uncategorized. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>