I wrote: > If we have only 16 bytes in the input, it still seems to be faster to use SSE, even though it's called through a function pointer on x86. I didn't test the DFA path, but I don't think the conclusion would be different. I'll include the 16 threshold next time I need to update the patch.
v22 attached, which changes the threshold to 16, with a few other cosmetic adjustments, mostly in the comments. -- John Naylor EDB: http://www.enterprisedb.com
v22-0001-Add-fast-paths-for-validating-UTF-8-text.patch
Description: Binary data