Closed indutny closed 5 years ago
Example of generated code: https://gist.github.com/indutny/8047e46247ad58ca0c39bd2a8ac2549a
No way... I just pushed it as a minor...
Had to publish 6.1.1
to resolve this. :facepalm:
I think it should build on Windows and all supported Unixes, but would really appreciate @bnoordhuis sign-off if they have time :wink:
Landed in 25d4378. Thanks!
Use SSE4.2 vector instructions to speed up matching. When node has a lot characters to match and loops to itself, the table lookups could be replaced with a call to
_mm_cmpestri
, skipping all matching characters in the input stream.cc @nodejs/http maybe?
The benchmark results (from llhttp) are:
No SSE:
SSE