forked from nodejs/http-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up the http_parser_execute loop
Changes: * Cache parser->nread in a local variable (same optimization that was already in place for parser->state). * Move the cost of the conditional branch for spaces in tokens out of the fast-tokenizer implementation and into the strict-tokenizer implementation. Together, these changes yield a ~15% increase in MB/s and req/s in the included bench program on x86_64. PR-URL: nodejs#422 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
- Loading branch information
1 parent
3123273
commit cf69c8e
Showing
1 changed file
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters