Closed AlekSi closed 2 months ago
As existing benchmarks show, logging is slow and allocates too much. We should speed it up.
One idea is to use strings.Builder and pass it to recursive logMessage calls instead of simply concatenating strings.
strings.Builder
logMessage
Run benchmarks before and after, and show benchstat output.
benchstat
As existing benchmarks show, logging is slow and allocates too much. We should speed it up.
One idea is to use
strings.Builder
and pass it to recursivelogMessage
calls instead of simply concatenating strings.Run benchmarks before and after, and show
benchstat
output.