Strip your NSLog()’s

On April 9, 2009, in iPhone Development, by admin

We stripped all the NSLog()’s out of our current app and the performance increase on the phone is very noticeable.  I recommend you use something like a preprocessor macro you can #ifdef out.

If you’re having trouble figuring out where to set these preprocessor flags, do this:

- Select “Edit active target “<Your project name>”" from the Project menu.

- Set the configuration to the one you want it defined in.

- Scroll down till you see GCC 4.0 Preprocessing.

- Double click on “Preprocessor Macros”, add your stuff in there.

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • TwitThis
 

Leave a Reply