Charlie Vieth
21e9c6047b
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
2019-07-16 19:00:22 +00:00
..
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-04 07:50:49 +01:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-04 07:50:49 +01:00
2019-07-03 09:04:47 +08:00
2019-07-04 13:56:37 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-02-21 07:23:34 +00:00
2019-07-03 09:04:47 +08:00
2019-07-03 20:39:12 +01:00
2019-07-03 09:04:47 +08:00
2019-07-16 19:00:22 +00:00
2019-07-03 09:04:47 +08:00
2019-07-03 16:10:56 +01:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-14 08:44:00 +00:00
2019-07-03 09:04:47 +08:00
2019-07-15 05:56:28 +00:00
2019-07-03 09:04:47 +08:00
2019-07-03 16:10:56 +01:00
2019-06-09 08:10:57 +01:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-07-03 09:04:47 +08:00
2019-03-26 14:37:30 +00:00
2019-03-26 14:37:30 +00:00
2019-03-29 19:40:23 +00:00
2018-07-19 16:23:06 +01:00
2019-01-19 11:23:13 +00:00
2019-01-08 08:30:03 -05:00
2019-06-17 20:01:06 +01:00