coredns/plugin
Miek Gieben 68b45f5377
plugin/cache: unroll minTTL loop (#1773)
This allocates memory because of the append, just unroll the loop.
Also add benchmark.

Before:
goos: linux
goarch: amd64
pkg: github.com/coredns/coredns/plugin/cache
BenchmarkCacheResponse-4   	  100000	     11910 ns/op
BenchmarkMinMsgTTL-4       	 1000000	      1494 ns/op
PASS

After:
goos: linux
goarch: amd64
pkg: github.com/coredns/coredns/plugin/cache
BenchmarkCacheResponse-4   	  100000	     12016 ns/op
BenchmarkMinMsgTTL-4       	 2000000	       668 ns/op
PASS
2018-05-08 18:36:29 +01:00
..
auto Do Compress only when need in request.Scrub (#1760) 2018-05-01 21:04:06 +01:00
autopath presubmit: check for uppercase (#1774) 2018-05-07 23:47:25 +02:00
bind presubmit: check for uppercase (#1774) 2018-05-07 23:47:25 +02:00
cache plugin/cache: unroll minTTL loop (#1773) 2018-05-08 18:36:29 +01:00
chaos all: fix plugin import ordering (#1717) 2018-04-22 08:34:35 +01:00
debug Update all plugins to use plugin/pkg/log (#1694) 2018-04-19 07:41:56 +01:00
deprecated plugin/deprecated: add an easy way to error on deprecated plugin (#1575) 2018-03-01 06:49:52 -08:00
dnssec presubmit: check for uppercase (#1774) 2018-05-07 23:47:25 +02:00
dnstap presubmit: check for uppercase (#1774) 2018-05-07 23:47:25 +02:00
erratic Do Compress only when need in request.Scrub (#1760) 2018-05-01 21:04:06 +01:00
errors all: fix plugin import ordering (#1717) 2018-04-22 08:34:35 +01:00
etcd presubmit: check for uppercase (#1774) 2018-05-07 23:47:25 +02:00
federation Do Compress only when need in request.Scrub (#1760) 2018-05-01 21:04:06 +01:00
file presubmit: check for uppercase (#1774) 2018-05-07 23:47:25 +02:00
forward gofmt some stuff (#1769) 2018-05-04 22:45:58 +02:00
health plugin/health: update README (#1739) 2018-04-26 08:44:33 +01:00
hosts Do Compress only when need in request.Scrub (#1760) 2018-05-01 21:04:06 +01:00
kubernetes Do Compress only when need in request.Scrub (#1760) 2018-05-01 21:04:06 +01:00
loadbalance Use logging (#1718) 2018-04-22 21:40:33 +01:00
log all: fix plugin import ordering (#1717) 2018-04-22 08:34:35 +01:00
metrics plugin/metrics: add panic counter (#1778) 2018-05-05 19:47:41 +02:00
nsid all: fix plugin import ordering (#1717) 2018-04-22 08:34:35 +01:00
pkg fix TestNewServer() hanging (#1786) 2018-05-08 18:35:47 +01:00
pprof Add usage example (#1759) 2018-04-30 20:53:23 +01:00
proxy presubmit: check for uppercase (#1774) 2018-05-07 23:47:25 +02:00
reload Use logging (#1718) 2018-04-22 21:40:33 +01:00
reverse Do Compress only when need in request.Scrub (#1760) 2018-05-01 21:04:06 +01:00
rewrite plugin/rewrite: handle continue in response rewrite (#1740) 2018-04-27 07:05:44 +01:00
root Use logging (#1718) 2018-04-22 21:40:33 +01:00
route53 Do Compress only when need in request.Scrub (#1760) 2018-05-01 21:04:06 +01:00
secondary plugin/auto/file/secondary: Use new upstream resolver (#1534) 2018-02-16 09:44:50 +01:00
template Do Compress only when need in request.Scrub (#1760) 2018-05-01 21:04:06 +01:00
test presubmit: check for uppercase (#1774) 2018-05-07 23:47:25 +02:00
tls gofmt some stuff (#1769) 2018-05-04 22:45:58 +02:00
trace core: remove HostAddresses() (#1728) 2018-04-25 15:27:25 +01:00
whoami Do Compress only when need in request.Scrub (#1760) 2018-05-01 21:04:06 +01:00
backend.go all: fix plugin import ordering (#1717) 2018-04-22 08:34:35 +01:00
backend_lookup.go Do Compress only when need in request.Scrub (#1760) 2018-05-01 21:04:06 +01:00
normalize.go fix computation of reverse zone based on Ipv6 CIDRs (#1415) 2018-01-23 15:58:36 +00:00
normalize_test.go CIDR query routing (#1159) 2017-10-24 10:16:03 +01:00
plugin.go all: fix plugin import ordering (#1717) 2018-04-22 08:34:35 +01:00