Optimizing the code that needs it – profiling

Don't optimize code that doesn't need to be optimized. It's a waste of your time and probably poor software engineering. Save yourself the trouble and identify performance problems accurately before attempting to optimize the program.