go/src/cmd
Brad Fitzpatrick dc2d64bf81 cmd/go: cache results of HTTP requests done during meta tag discovery
Previously, running

  $ go get -u -v golang.org/x/tools/cmd/godoc

would results in dozens of HTTP requests for

  https://golang.org/x/tools?go-get=1

once per package under x/tools.

Now it caches the results. We still end up doing one HTTP request for
all the packages under x/tools, but this reduces the total number of
HTTP requests in ~half.

This also moves the singleflight package back into an internal
package. singleflight was originally elsewhere as a package, then got
copied into "net" (without its tests). But now that we have internal,
put it in its own package, and restore its test.

Fixes #9249

Change-Id: Ieb5cf04fc4d0a0c188cb957efdc7ea3068c34e3f
Reviewed-on: https://go-review.googlesource.com/8727
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
2015-04-13 07:08:00 +00:00
..
5g cmd/5g, cmd/internal/ld, cmd/internal/obj: destutter composite literals 2015-04-11 19:31:40 +00:00
5l cmd/internal/ld: add -buildmode=c-shared as an alternative to -shared 2015-04-08 21:51:14 +00:00
6g cmd/internal/obj/x86, cmd/internal/ld, cmd/6l: 6g/asm -dynlink accesses global data via a GOT 2015-04-10 03:47:47 +00:00
6l cmd/internal/obj/x86, cmd/internal/ld, cmd/6l: 6g/asm -dynlink accesses global data via a GOT 2015-04-10 03:47:47 +00:00
7g cmd/internal/gc, etc: remove dead code 2015-04-08 22:36:44 +00:00
7l cmd/internal/obj/arm64, cmd/internal/ld, cmd/7l: remove absolute addressing in .text 2015-04-08 09:07:48 +00:00
8g cmd/internal/gc: inline runtime.getg 2015-04-07 14:26:47 +00:00
8l cmd/internal/ld, cmd/8l: external linking for windows/386 2015-03-24 03:23:16 +00:00
9g cmd/internal/gc, etc: remove dead code 2015-04-08 22:36:44 +00:00
9l cmd/...: remove use of func() { ... }() in loop increment 2015-03-17 00:34:00 +00:00
addr2line cmd/addr2line: skip fork test on darwin/arm64 2015-04-12 11:53:24 +00:00
api cmd/api: make the test more robust 2015-04-08 08:46:42 +00:00
asm cmd/internal/obj/x86, cmd/internal/ld, cmd/6l: 6g/asm -dynlink accesses global data via a GOT 2015-04-10 03:47:47 +00:00
cgo runtime: initialize shared library at library-load time 2015-04-03 01:24:51 +00:00
dist cmd/go: cache results of HTTP requests done during meta tag discovery 2015-04-13 07:08:00 +00:00
fix all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
go cmd/go: cache results of HTTP requests done during meta tag discovery 2015-04-13 07:08:00 +00:00
gofmt cmd/gofmt, go/format: refactor common pieces into internal/format 2015-04-01 17:35:26 +00:00
internal cmd/interal/ld: darwin c-archive buildmode support 2015-04-12 14:00:32 +00:00
link
nm cmd/nm: skip fork test on darwin/arm64 2015-04-12 11:52:22 +00:00
objdump cmd/objdump: disable TestDisasm.* on arm64 2015-03-16 18:46:52 +00:00
old5a cmd/internal/obj: replace Addr.U struct {...} with Val interface{} 2015-03-20 04:47:08 +00:00
old6a cmd/internal/obj: replace Addr.U struct {...} with Val interface{} 2015-03-20 04:47:08 +00:00
old8a cmd/internal/obj: replace Addr.U struct {...} with Val interface{} 2015-03-20 04:47:08 +00:00
old9a cmd/internal/obj: replace Addr.U struct {...} with Val interface{} 2015-03-20 04:47:08 +00:00
pack cmd/pack: skip fork test on darwin/arm 2015-03-01 01:27:06 +00:00
pprof cmd/pprof/internal/profile: insert blank line after non-doc comment 2015-03-16 23:07:15 +00:00
trace cmd/trace: move goroutine analysis code to internal/trace 2015-03-11 12:53:24 +00:00
yacc cmd/internal/gc, cmd/yacc: implement "expecting" syntax error messages 2015-04-07 00:18:02 +00:00