Files
coredns/middleware
Miek Gieben 84dfdab584 Cache elements of State
Cache the size and the do bit whenever someone asked for it. We can

probably add more:



PASS

BenchmarkStateDo-4  	100000000	        11.9 ns/op

BenchmarkStateSize-4	 5000000	       265 ns/op

ok  	github.com/miekg/coredns/middleware	2.828s



PASS

BenchmarkStateDo-4  	1000000000	         2.86 ns/op

BenchmarkStateSize-4	500000000	         3.10 ns/op

ok  	github.com/miekg/coredns/middleware	5.032s



This PR also includes some testing cleanups as well.
2016-04-04 08:19:06 +01:00
..
2016-04-04 08:19:06 +01:00
2016-04-04 08:19:06 +01:00
2016-04-04 08:19:06 +01:00
2016-04-04 08:19:06 +01:00
2016-04-04 08:19:06 +01:00
2016-04-04 08:19:06 +01:00
2016-04-04 08:19:06 +01:00
2016-04-03 09:02:34 +01:00
2016-04-04 08:19:06 +01:00
2016-03-30 13:12:27 +00:00
2016-03-30 20:13:48 +01:00
2016-03-18 20:57:35 +00:00
2016-03-18 20:57:35 +00:00
2016-03-23 10:41:40 +00:00
2016-04-03 07:44:28 +01:00
2016-03-19 07:32:50 +00:00
2016-03-19 07:32:50 +00:00
2016-03-19 07:32:50 +00:00
2016-04-04 08:19:06 +01:00
2016-03-19 07:32:50 +00:00
2016-04-03 17:16:46 +01:00
2016-03-18 20:57:35 +00:00
2016-04-04 08:19:06 +01:00
2016-04-04 08:19:06 +01:00
2016-04-03 07:44:28 +01:00