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

Discussion in 'iPhone/iPad Programming' started by fenrus110, Aug 20, 2008.

  1. macrumors regular

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

    Joined:
    Jul 17, 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
     

Share This Page