Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Artax re-parses the same host multiple times, because it's parsed in Artax, then parsed in HttpSocketPool, then parsed in BasicSocketPool. All calls happen synchronously, so it makes sense to cache exactly the last parsed host. Other similar uses might benefit, too. I'm not sure about benefits for non-benchmarks, but it brings significant benefits in benchmark situations.
- Loading branch information
Showing
1 changed file
with
31 additions
and
16 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