F fenrus110 macrumors regular Original poster Mar 24, 2008 142 0 Aug 20, 2008 #1 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?
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?
S sgauravv macrumors newbie Jul 17, 2008 12 0 Aug 20, 2008 #2 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
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