Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kelnos
on April 6, 2023
|
parent
|
context
|
favorite
| on:
C Strings and my slow descent to madness
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.
YourDadVPN
on April 6, 2023
[–]
Especially when there's a decent chance the compiler would replace the loop with a call to strlen.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: