When I was first learning the C programming language, in my early 20s, it was common knowledge that of the two ways to increment a variable, i++ was slower than ++i. The post-increment function returned the original value of i, which meant stashing a copy of that value before performing the increment. Pre-increment avoided this wasteful operation.

And by “common knowledge” I really mean folklore, because I turned 20 in 1995 and even by then, the most basic of optimising compilers knew to check if you ever used the return value of i++, and if not, skip the operation to save it.

Scratch an old programmer and you'll probably find a dozen or so ingrained habits that, in an era where CPUs are doing branch prediction and code reordering, are just as likely to make their program slower.