I'd suggest focusing on the functional aspects of your code first. Make it easy to understand, easy to work on - maintainable.
Prematurely optimizing all of your code eats up lots of time, and may not be necessary.
Additionally, there are lots of myths / misconceptions about optimization and what is effective - making it all the more important to a) make sure there is an actual need for detailed optimization in the first place and b) invest the time to do it properly.