1
0
mirror of https://github.com/golang/go synced 2024-10-04 22:21:22 -06:00
go/src/pkg
Brad Fitzpatrick 61d3b2db62 net: coalesce duplicate in-flight DNS lookups
In Issue 5625, Russ says: "We should at least have a cache of
inflight lookups, so that 100 simultaneous dials of one host
name don't do the work 100x. That's easy and (assume we forget
the answer once they all get it) doesn't pose any consistency
problems. It just merges simultaneous work."

This brings in singleflight (unexported) from Google /
Camlistore, but without its tests. Maybe we should put it
somewhere in the standard library. But not now.

Update #5625

R=golang-dev, iant, cespare, rsc, dave, rogpeppe, remyoudompheng
CC=golang-dev
https://golang.org/cl/10079043
2013-06-14 08:59:43 -07:00
..
archive archive/tar: skip NUL-filled unused octal fields 2013-05-15 04:40:42 +08:00
bufio bufio: fix SplitFunc docs 2013-05-23 04:38:32 +08:00
builtin builtin: document true and false. 2013-04-18 14:36:08 -07:00
bytes runtime/bytes: fast Compare for byte arrays and strings. 2013-05-14 16:05:51 -07:00
compress compress/bzip2: faster decoding. 2013-06-03 20:38:00 +02:00
container container/heap: fix int overflow bug 2013-03-04 10:25:21 -05:00
crypto asn1: Improved encoding/decoding for OID types 2013-06-10 18:14:47 -04:00
database/sql database/sql: remove extra RemoveDep call 2013-05-21 14:58:08 -07:00
debug debug/elf: repair GNU version symbols. 2013-03-22 01:27:55 +01:00
encoding asn1: Improved encoding/decoding for OID types 2013-06-10 18:14:47 -04:00
errors
expvar all: make tests able to run multiple times. 2013-01-27 00:24:09 +01:00
flag all: make tests able to run multiple times. 2013-01-27 00:24:09 +01:00
fmt fmt: change evalutation of indexed arg to match docs 2013-05-29 11:29:29 -04:00
go go/ast: add {L,R}paren token.Pos field to ast.TypeAssertExpr. 2013-06-13 14:41:44 -04:00
hash build: update assembly variable names for vet 2013-03-22 12:57:55 -04:00
html build: remove dead code 2013-03-22 17:28:22 -04:00
image image/jpeg: avoid documentation argument over whether it's luma 2013-06-05 10:18:06 +10:00
index/suffixarray
io io/ioutil: make WriteFile notice errors from Close() 2013-06-05 21:16:44 -07:00
log log/syslog: fix deadlock in test 2013-05-24 18:35:48 +04:00
math math/big: save some copies in binaryGCD. 2013-05-15 10:03:22 -04:00
mime mime: add support for Plan 9 2013-06-04 17:30:45 -07:00
net net: coalesce duplicate in-flight DNS lookups 2013-06-14 08:59:43 -07:00
os os: request appropriate access rights before calling windows TerminateProcess 2013-06-11 13:06:38 +10:00
path path/filepath: Skip TestEvalSymlinks. Plan 9 doesn't have symlinks. 2013-05-24 11:01:04 -07:00
reflect runtime: introduce cnewarray() to simplify allocation of typed arrays 2013-05-27 11:29:11 +04:00
regexp regexp: doc fix 2013-05-02 18:59:39 -07:00
runtime cmd/gc: instrument arrays properly in race detector. 2013-06-14 11:14:45 +02:00
sort sort: don't depend on math 2013-04-20 17:20:41 -07:00
strconv strconv: corrected several bad references to err.Error in doc comments. 2013-06-13 17:04:47 -07:00
strings bytes,strings: remove user name from BUG in comment 2013-03-19 15:04:18 -07:00
sync sync: improve race instrumentation of WaitGroup 2013-06-10 22:38:58 +04:00
syscall os: request appropriate access rights before calling windows TerminateProcess 2013-06-11 13:06:38 +10:00
testing testing: add -outputdir flag so "go test" controls where the files are written 2013-06-12 18:13:34 -07:00
text text/template: comment fix 2013-05-03 14:22:34 -07:00
time time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00
unicode unicode: modify a comment to the convention format. 2013-03-19 14:47:41 -04:00
unsafe