dimanche 31 août 2008

iPhone apps performances


While struggling to speed up the app I am developping for the iPhone, I discovered how heavy and resources demanding the NSLog() method was. Ok, right, I know this is quite obvious, but if you forget to remove the NSLogs from your code, you will just see the responsiveness of the app drop by almost 80%. How lovely is it?
What is a pitty, is that I couldn't find any common or standard way of deactivating the NSLog() when building for Release. I had to use the infamous #define DEBUG 0 if(DEBUG) NSLog(...), like I was and its respectiveback in the nineties...

Hope this post will remind that you have to deal with this output !

Aucun commentaire: