-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The default_ua function is called on every request and involves calls to the slow base function packageDescription. Depending on the use, this can account for up to 40% of the client-side CPU time which is a lot when using over a loopback connection (e.g. etcd, RNeo4j). Because this information is unlikely to change during a session (and is infomative for the server and likely ignored anyway) computing it once and reusing it seems safe). By @richfitz, closes #322.
- Loading branch information
Showing
2 changed files
with
15 additions
and
6 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
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