News for hackers. Stuff that matters.
Re:Improving Parser Performance Using SSE Instructions by rurban on Monday December 01, 2014 @02:09PM (#8682992)
Using 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.

Re:Improving Parser Performance Using SSE Instructions by yuhong on Monday December 01, 2014 @01:56PM (#8682903)
I wonder if there is any HTML parsers that use SSE4.2 instructions
Re:Improving Parser Performance Using SSE Instructions by supersillyus on Monday December 01, 2014 @03:57PM (#8683733)
IIRC Servo is using html5ever for HTML parsing, which (at least in one branch) uses SSE4.2 for parsing.
Re:Improving Parser Performance Using SSE Instructions by bmm6o on Monday December 01, 2014 @08:39PM (#8685221)
It's an interesting idea, but I found this blog post unenlightening. Does anyone have links to other writeups?
Re:Improving Parser Performance Using SSE Instructions by octo_t on Monday December 01, 2014 @01:32PM (#8682750)
clang does a very similar thing in the preprocessor (looking for new lines if my memory serves correctly).
Re:Improving Parser Performance Using SSE Instructions by billconan on Monday December 01, 2014 @02:19PM (#8683040)
can http parsing be done on a GPU?
Re:Improving Parser Performance Using SSE Instructions by michael_h on Monday December 01, 2014 @02:57PM (#8683325)
Maybe, but the transfer time to/from the gpu is probably going to kill any gains you might get.