Skip to content

http: optimize on_headers_complete

Rodrigo Muino Tomonari requested to merge github/fork/piscisaureus/http-opt into v1.x

Use an array instead of an object to pass a parsed header chunk from c++ to javascript. This offers a 5-10% speedup on the http_simple benchmark, as evidenced by running:

ab -k -t 100 -c 100 http://127.0.0.1:8000/bytes/100

R=@bnoordhuis

Merge request reports

Loading