Home > Blogs > Cocoa Tip of the Day, 1/6/10

Cocoa Tip of the Day, 1/6/10

Don't optimise yet.

Cocoa provides a lot of features that gain flexibility at the expense of speed.  For example, you can use key-value coding rather than writing accessor methods.  For infrequently used code paths, they may be fast enough for the final version.  If you use them initially, then you can get something working quickly for your users to test and then optimise the slow bits after profiling.

Cocoa Programming Developer's HandbookFor more tips, and more detail about this tip, please see my new book,
Cocoa Programming Developer's Handbook,
available in print and electronic formats.