Strip you NSLog()s automatically

The folks over at the iQuit blog have mentioned that disabling NSLog calls in your iPhone code results in a huge performance improvement.  Having done so myself, I can firmly attest to that.  An easy way to disable NSLog calls globally is to put a few lines of macros in your project’s precompiled header (.pch) file:

//force NSLog disable
//uncomment to force NSLog disabling no matter what
//#define FORCE_NSLOG_DISABLE
//note: you will need to add the DEBUG symbol to your
//  project's preprocessor flags setting
#if !defined(DEBUG) || defined(FORCE_NSLOG_DISABLE)
//variadic MACROS may be gcc only
#	define NSLog(...) ;
#endif

This will replace all NSLog calls to no-ops, which is of course much cheaper than printing to stdout.

Ayumusoft is back

We’re back!  Did you miss us?  Ayumusoft has another iPhone project going.  You know what that means: more techie, nerdy posts from yours truly.  Hopefully the other team members will post some non-nerdy news, help balance it out.

I hope you’re ready.