Very small http parser tweak

Maxim Dounin mdounin at
Wed Aug 21 10:55:26 UTC 2013


On Wed, Aug 21, 2013 at 10:20:52AM +0200, Nils Kuhnhenn wrote:

> The http parser performance for http methods that are 5 bytes long could be
> improved a little by inserting 'break' after each 'r->method =...' in the
> lines 212-224 in src/http/ngx_http_parse.c
> From looking at the other code it looks like someone just forgot to insert
> them.

Sure, thanks for noting this.

Maxim Dounin

More information about the nginx-devel mailing list