http: speed up callbacks, use array indices
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 13 Aug 2013 21:47:17 +0000 (23:47 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 14 Aug 2013 16:08:04 +0000 (18:08 +0200)
commit2669966e7670653ea39a1b6d69ad52328bb00027
tree5d9e03381d1f86396b5bc7e4bbdc0b7800dfa077
parentd684f50acba12152126f0c4e9c83ad1626e8b91c
http: speed up callbacks, use array indices

Use array indices rather than named properties to store callbacks on
the HTTPParser object.  Speeds up the http benchmarks by a few percent.
lib/_http_common.js
src/node_http_parser.cc
test/simple/test-http-parser-bad-ref.js
test/simple/test-http-parser.js