How do you optimize your application?
Where do I begin. Is it a way to check where and how is the app using the most resources?

My guess is,
1. minimize the number of variables,
2. write the code shorter, check for "stupid loops" which can be done otherwise in a faster way.
3. ???

Thank you for your help.