Hacker News new | ask | show | jobs
by imtringued 111 days ago
Your complaint is silly. Worst case the compiler copy pastes the code multiple times or adds a constant size for loop meaning the cost is negligible.

In the better cases it figures out how to reorder the instructions and gains performance over the naive implementation.