aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/replacer/replacer_test.go
diff options
context:
space:
mode:
authorGravatar Charlie Vieth <cvieth@lyft.com> 2019-07-16 15:00:22 -0400
committerGravatar Miek Gieben <miek@miek.nl> 2019-07-16 19:00:22 +0000
commit21e9c6047b5bb4af4b798229828630fdfe633a7e (patch)
tree82e7b2e1cdca7d2a159a3fd8a8d94e82923185ac /plugin/pkg/replacer/replacer_test.go
parent767d3998770a9bb7dac3ec7401c63d59b12bc215 (diff)
downloadcoredns-21e9c6047b5bb4af4b798229828630fdfe633a7e.tar.gz
coredns-21e9c6047b5bb4af4b798229828630fdfe633a7e.tar.zst
coredns-21e9c6047b5bb4af4b798229828630fdfe633a7e.zip
Fix log plugin benchmark and slightly improve performance (#3004)
* log: use ioutil.Discard as write buffer in benchmark Using a buffer gives unrealistic stats and consumes a large amount of memory. * log: lazily check if a msg should be logged * log: improve variable name Change 'ok' to the more descriptive 'shouldLog'. * log: code comments: don't reuse variable
Diffstat (limited to 'plugin/pkg/replacer/replacer_test.go')
0 files changed, 0 insertions, 0 deletions