Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fenrus110

macrumors regular
Original poster
Mar 24, 2008
142
0
Hope this isn't a stupid question, but does having a lot of NSLog in my code affect the performance when I run it on the actual device?
 

sgauravv

macrumors newbie
Jul 17, 2008
12
0
I think yes because one instruction will need for every NSlog.
So i think u can use in this way then it will not effect so much
#ifdef _DEBUG
NSLog(string);
#endif.
so for debugging purpose u can define it for release purpose u can use not define
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.