diff options
author | Jakob Unterwurzacher | 2016-01-21 22:59:11 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-01-21 22:59:11 +0100 |
commit | d1631696556cb6460db1d6eedf9fbc3015433b1c (patch) | |
tree | a2665626d35a55d82cc41bdc0dce28710e1fa01f /Documentation/performance.txt | |
parent | 9bab220a1b5a10c00c314b15f4c9f879f1473707 (diff) |
Wrap Logger to make disabling output more efficient
Instead of using SetOutput(ioutil.Discard), which means
that Printf is still called for every debug message,
use a simple and fast boolean check.
Streaming write performance improves from 86 to 93 MB/s.
Diffstat (limited to 'Documentation/performance.txt')
0 files changed, 0 insertions, 0 deletions