If you really care about using the hardware effectively, optimizing the code is so much more than what you describe.