This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: optimise "runtime" steps (#80)
gobin maintains binaries in its own cache. The key for a cache entry is a function of main package path, version and build tags. Assuming nobody tampers with the build cache (making it readonly is the subject of #5), then we need only install to the cache entry if a file does not already exist. Also, optimise go list calls by using -find; we don't care for the dependencies in these steps. No change in tests because there should be no change in behaviour. With some incredibly unscientific timing tests on my machine, this reduces the time taken for "gobin -run github.com/myitcv/gobin -help" from 0.636s to 0.246s. "gobin -help" times at 0.070s which means ~0.176s of gobin "overhead".
- Loading branch information
Showing
8 changed files
with
46 additions
and
32 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
4 changes: 2 additions & 2 deletions
4
...1.12/badly_sorted_vendor_modules.txt.diff → ...1.13/badly_sorted_vendor_modules.txt.diff
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
4 changes: 2 additions & 2 deletions
4
...12.7/badly_sorted_vendor_modules.txt.diff → ...12.9/badly_sorted_vendor_modules.txt.diff
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module github.com/myitcv/gobin | ||
|
||
require github.com/rogpeppe/go-internal v1.3.0 | ||
require github.com/rogpeppe/go-internal v1.3.1 | ||
|
||
go 1.11 |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.