3 ms·
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
by JoachimSchipper 14y ago
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.
- jacquesm 14y agoGood 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.