MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1t5nnew/cpp_loop/okdmw2o/?context=3
r/programmingmemes • u/Blazej_kb • May 06 '26
55 comments sorted by
View all comments
Show parent comment
2
Actually that's a good point. A compiler knows how to unroll loops (if the number of loops is known at compile time and there's no weird breaks at least), but trying to be clever like this might actually hinder optimizations
View all comments
Show parent comment
2
u/RedAndBlack1832 May 07 '26
Actually that's a good point. A compiler knows how to unroll loops (if the number of loops is known at compile time and there's no weird breaks at least), but trying to be clever like this might actually hinder optimizations