Improving Parser Performance Using SSE Instructions(blog.kazuhooku.com)
blog.kazuhooku.com
Improving Parser Performance Using SSE Instructions
http://blog.kazuhooku.com/2014/12/improving-parser-performance-using-sse.html
7 comments
I wonder if there is any HTML parsers that use SSE4.2 instructions
IIRC Servo is using html5ever for HTML parsing, which (at least in one branch) uses SSE4.2 for parsing.
It's an interesting idea, but I found this blog post unenlightening. Does anyone have links to other writeups?
clang does a very similar thing in the preprocessor (looking for new lines if my memory serves correctly).
But you cannot assume everybody has such a CPU. Hence you'd either need to compile your own (a la macports, gentoo, perl, ...) or do run-time checks for the CPU feature and switch to the fast version then.