diff options
author | 2018-12-07 20:09:09 +0000 | |
---|---|---|
committer | 2018-12-07 12:09:09 -0800 | |
commit | 8a5eb58bc09d3a9ce9bbb52ccc972f6eddd6ac80 (patch) | |
tree | c2cada1a650f3c73773a0faf9fd00b594d96514d /plugin/kubernetes/kubernetes_test.go | |
parent | 16197a1addb69dafffd5f8ffca1d00273831b583 (diff) | |
download | coredns-8a5eb58bc09d3a9ce9bbb52ccc972f6eddd6ac80.tar.gz coredns-8a5eb58bc09d3a9ce9bbb52ccc972f6eddd6ac80.tar.zst coredns-8a5eb58bc09d3a9ce9bbb52ccc972f6eddd6ac80.zip |
msg.Service: optimize a bit (#2374)
Make the NewSRV and friends slightly smarter. Optimize the calling of
targetStrip which is almost certainly not used.
Added benchmark show a modest improvement:
benchmark old ns/op new ns/op delta
BenchmarkNewSRV-4 300 283 -5.67%
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/kubernetes/kubernetes_test.go')
0 files changed, 0 insertions, 0 deletions