Descriptionnet: improve behavior of native Go DNS queries
See https://groups.google.com/forum/#!topic/golang-dev/lV-0aHqxVeo
Fixes issue 6579.
Benchmark results on linux/amd64:
benchmark old ns/op new ns/op delta
BenchmarkGoLookupIP 59284398 35349632 -40.37%
BenchmarkGoLookupIPNoSuchHost 131102584 34241062 -73.88%
BenchmarkGoLookupIPWithBrokenNameServer 20048604097 5024381059 -74.94%
benchmark old allocs new allocs delta
BenchmarkGoLookupIP 107 112 4.67%
BenchmarkGoLookupIPNoSuchHost 212 110 -48.11%
BenchmarkGoLookupIPWithBrokenNameServer 165 161 -2.42%
benchmark old bytes new bytes delta
BenchmarkGoLookupIP 11416 11863 3.92%
BenchmarkGoLookupIPNoSuchHost 23331 12053 -48.34%
BenchmarkGoLookupIPWithBrokenNameServer 25696 21728 -15.44%
Patch Set 1 #Patch Set 2 : diff -r 8a975cf68c20 https://code.google.com/p/go #Patch Set 3 : diff -r 8a975cf68c20 https://code.google.com/p/go #Patch Set 4 : diff -r 8a975cf68c20 https://code.google.com/p/go #
MessagesTotal messages: 3
|