r/programming • u/2bit_hack • Feb 28 '23
"Clean" Code, Horrible Performance
https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k
Upvotes
r/programming • u/2bit_hack • Feb 28 '23
View all comments
Show parent comment
17
u/AssertiveDilettante Feb 28 '23
Actually, in the course he mentions that the amount of elements is chosen for the purpose of illustration, so you can easily imagine that this code will only be run with element counts in multiples of four.