Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I concur that doing this directly in your code is extremely ugly; but note that you can get this speedup by just dropping in a call to glibc's memchr(), hiding the ugliness behind a well-known interface.


Good point about memchr, I missed an opportunity there.

edit: because it's clearer and faster, that's a no-brainer, updating the blog post with a remark to that effect and a link to parent.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: