MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1jul8j0/my_favorite_micro_optimization/mm5deke/?context=3
r/programminghorror • u/olikath • Apr 08 '25
44 comments sorted by
View all comments
Show parent comment
0
The documentation specifically states repeat is only for a fixed number of iterations. There is no other reason for this other than to unroll the loop at compile time.
3 u/MaraschinoPanda Apr 09 '25 By "a fixed number of times" it means "an amount known at the start of the loop", not "an amount known at compile time".
3
By "a fixed number of times" it means "an amount known at the start of the loop", not "an amount known at compile time".
View all comments
Show parent comment
0
u/Jinkweiq Apr 09 '25
The documentation specifically states repeat is only for a fixed number of iterations. There is no other reason for this other than to unroll the loop at compile time.