Also, good luck using regex to write a RFC or WHATWG conformant URL parser.
https://www.rfc-editor.org/rfc/rfc3986#page-7
>> The following line is the regular expression for breaking-down a well-formed URI reference into its components.
>> ^(([^:/?#]+):)?(//([^/?#]))?([^?#])(\?([^#]))?(#(.))?
Did Chomsky die for nothing?
I guess there are reasons to do things efficiently when possible, but a million URLs is not it, the adage about the root of all evil comes to mind. A billion URLs per second and it's almost interesting, but not really.
Damn. I got fake newsd. It was probably a close call.
My commiseration email must have looked so silly.
And depending on the length of your URL, 4000 will not be trivial, depending on the output format.
Today, Chrome supports 32,768 characters.. good luck processing that in 4,000 cycles! It'd require SIMD or some other fanciness.
But per core, right?