This project is mirrored from https://github.com/coredns/coredns.git. The repository failed to update .
Repository mirroring has been paused due to too many failed attempts, and can be resumed by a project maintainer.
Last successful update .
  1. 19 Jul, 2019 2 commits
  2. 18 Jul, 2019 2 commits
  3. 17 Jul, 2019 2 commits
    • Charlie Vieth's avatar
      replacer: evaluate format once and improve perf by ~3x (#3002) · a2af651e
      Charlie Vieth authored
      * replacer: evaluate format once and improve perf by ~3x
      
      This improves the performance of logging by almost 3x and reduces memory
      usage by ~8x.
      
      Benchmark results:
      
      benchmark                                old ns/op     new ns/op     delta
      BenchmarkReplacer-12                     644           324           -49.69%
      BenchmarkReplacer_CommonLogFormat-12     4228          1471          -65.21%
      
      benchmark                                old allocs     new allocs     delta
      BenchmarkReplacer-12                     8              2              -75.00%
      BenchmarkReplacer_CommonLogFormat-12     51             17             -66.67%
      
      benchmark                                old bytes     new bytes     delta
      BenchmarkReplacer-12                     240           48            -80.00%
      BenchmarkReplacer_CommonLogFormat-12     3723          446           -88.02%
      
      * replacer: code review comments
      
      * bufPool: document why we use a pointer to a slice
      * parseFormat: fix confusing comment
      * TestParseFormat_Nodes: rename to TestParseFormatNodes
      
      * replacer: use a value for bufPool instead of a pointer
      
      * replacer: remove comment
      
      * replacer: replace labels with knownLabels
      
      The previous slice of label names is no longer needed.
      a2af651e
    • Charlie Vieth's avatar
      Fix log plugin benchmark and slightly improve performance (#3004) · 21e9c604
      Charlie Vieth authored
      * 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
      21e9c604
  4. 16 Jul, 2019 1 commit
  5. 15 Jul, 2019 2 commits
  6. 14 Jul, 2019 1 commit
  7. 12 Jul, 2019 2 commits
  8. 11 Jul, 2019 3 commits
  9. 04 Jul, 2019 9 commits
  10. 03 Jul, 2019 4 commits
  11. 02 Jul, 2019 1 commit
  12. 30 Jun, 2019 1 commit
    • Miek Gieben's avatar
      plugin/file: load secondary zones lazily on startup (#2944) · 3a0c7c61
      Miek Gieben authored
      This fixes a long standing bug:
      fixes: #1609
      
      Load secondary zones in a go-routine; this required another mutex to
      protect some fields; I think those were needded anyway because a
      transfer can also happen when we're running; we just didn't have a test
      for that situation.
      
      The test had to be changed to wait for the transfer to happen at this is
      async now.
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      3a0c7c61
  13. 29 Jun, 2019 1 commit
  14. 28 Jun, 2019 2 commits
  15. 26 Jun, 2019 4 commits
  16. 25 Jun, 2019 3 commits