3 ms·
Improving Parser Performance Using SSE Instructions
- octo_t 12y agoclang does a very similar thing in the preprocessor (looking for new lines if my memory serves correctly).
- yuhong 12y agoI wonder if there is any HTML parsers that use SSE4.2 instructions
- supersillyus 12y agoIIRC Servo is using html5ever for HTML parsing, which (at least in one branch) uses SSE4.2 for parsing.
- rurban 12y agoUsing SSE4.2 or more is trivial. Same goes for fast hashes with the crc32 intrinsic. Mostly the compiler does it for you (-march=native) 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.
- billconan 12y agocan http parsing be done on a GPU?
- michael_h 12y agoMaybe, but the transfer time to/from the gpu is probably going to kill any gains you might get.
- bmm6o 12y agoIt's an interesting idea, but I found this blog post unenlightening. Does anyone have links to other writeups?