-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit does some small optimization changes on `lib/_http_outgoing.js`. These include switching from `while` loops to `for` loops, moving away from `util` to `typeof` checks, and removing dead code. It also includes variable caches to avoid lookups and generic style changes. All in all, much faster execution. It gets an across the board increase in req/sec on the benchmarks, from my experience about a 10% increase. PR-URL: #605 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Nicu Micleușanu <micnic90@gmail.com> Reviewed-By: Christian Vaagland Tellnes <christian@tellnes.com> Reviewed-By: Brian White <mscdex@mscdex.net>
- Loading branch information
1 parent
7b3b8ac
commit 08133f4
Showing
1 changed file
with
44 additions
and
28 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