Predict the speed of a piece of code from what the hardware has to do rather than from the number of operations, well enough to say which of two equivalent versions wins and why, and to stop optimising the part that costs nothing
What Makes Code Fast

Operation counts stopped predicting speed decades ago. This course covers what actually governs it: whether the data is nearby, whether the processor guessed right, whether work can be done at the same time, and which limit you are against.
8 lessons, written and corrected before you arrived. Reading them here needs no account. The first reads the whole way through; the others open and then stop, because a page nobody owns cannot tell who is reading it. Starting the course gives you your own copy, where every idea has problems standing under it and you can ask about any sentence.