The primary focus should be to get your code to work at all. After you know it works, then you can optimize it.