-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When GOROOT is not set as an environment variable, GetBuildContext fetches it from 'go env GOROOT', which takes about 50ms on my machine. This overhead can almost double the time it takes to run an update since GetBuildContext is called relatively frequently. Instead, read GOROOT during initialization and cache it for GetBuildContext.
- Loading branch information
Anthony Romano
committed
Dec 16, 2016
1 parent
b5e17dc
commit f9cc015
Showing
1 changed file
with
20 additions
and
12 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