3 ms·
nginx uses switch on a combination of length + specific known characters as part of a similar optimization. https://github.com/nginx/nginx/blob/9c7a2c7ce4ad02a
by morelisp 4y ago
nginx uses switch on a combination of length + specific known characters as part of a similar optimization.
https://github.com/nginx/nginx/blob/9c7a2c7ce4ad02a36df1bb0ee5e40a84610fffb9/src/http/ngx_http_parse.c#L164 https://github.com/nginx/nginx/blob/9c7a2c7ce4ad02a36df1bb0e...