Posts

  • Slow NSDateFormatter initialization

    I keep seeing on code reviews that people are instantiating NSDateFormatter whenever they need it, and releasing it shortly afterwards. And then raising questions, why their code is so slow. Well,

  • Logging

    I don't like to leave calls to NSLog() in release build. Given the performance considerations and system log filled with my debug output, it's not a very good idea. I've been using this macro for all my logging needs. Here, it is:

subscribe via RSS