@elect I do want to say that I generally agree with the sentiment; profile and then optimize and avoid premature optimizations.
However, when you’re working close to the hardware and especially with a low level graphics program it does not always hold true. The reason being all layers above your engine have to pay the cost.