Reputation: 5323
I am developing a cocoa application (Mac) and wanted to know what are your tips, best practices, ... for an efficient Cocoa application, which starts in less than 1 second and which is very responsive. I've installed twitter for Mac and was amazed by its speed. Is it using special tricks?
Thanks in advance for your ideas :)
Upvotes: 2
Views: 227
Reputation: 61228
Do only what you need to do and only when you need to do it.
Upvotes: 0
Reputation: 5286
A lot of it may be simply tightly written, good quality code. These sort of apps don't tend to rely on clunky frameworks etc.
Upvotes: 0
Reputation: 124997
Three things that can help reduce startup time and improve overall performance are:
Upvotes: 5
Reputation: 24125
I don't think there are really any "tricks" per se. You just profile your code with Instruments, and eliminate the slow areas. It's the same as optimising any code; don't block the main thread with disk reads/writes, use lazy loading where appropriate, etc.
Upvotes: 3