News for hackers. Stuff that matters.
Re:C Strings and my slow descent to madness by kelnos on Thursday April 06, 2023 @05:22PM (#35474663)
Out of curiosity, why do you use this? I expect the builtin strlen() to be even more optimized than this. There's a lot more you can do than a simple loop unrolling.
Re:C Strings and my slow descent to madness by YourDadVPN on Thursday April 06, 2023 @05:46PM (#35474977)
Especially when there's a decent chance the compiler would replace the loop with a call to strlen.