Does have NSLog in my code affect performance on actual device?

Discussion in 'iOS Programming' started by fenrus110, Aug 20, 2008.

  1. fenrus110 macrumors regular

    Mar 24, 2008
    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?
  2. sgauravv macrumors newbie

    Jul 17, 2008
    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
    so for debugging purpose u can define it for release purpose u can use not define

Share This Page