The problem I have right now, is figuring out which intrinsic is best suited for the job.
I am attempting to parse a header as fast as possible. I check the first 16 bytes of the header with a few masks to get the METHOD first. The one I was recommended to use is _mm_cmpeq_epi8
and then load the mask with _mm_movemask_epi8
.
Now I need to check the index of space
characters to get the route. For example,
GET /this/is/a/route?id=777 HTTP/1.1\r\n
index 3, and 27.
Which intrinsic would be best suited for the job?