Hacker News new | ask | show | jobs
by philkrylov 671 days ago
> for (int i = 0; i < strlen (str); i++) {...}

> A modern compiler will optimize this redundancy away

No, it won't: https://godbolt.org/z/xbzz4cEq3