253c9e666c
In general, we've learned that logging must be avoided at all costs in the hot path. It's unlikely that the optimizations here were significant in any case, since buffer would certainly escape. This also adds a test to ensure that the caller identification works as expected, and so that logging can be benchmarked. Original: BenchmarkGoogleLogging-6 1222255 949 ns/op With this change: BenchmarkGoogleLogging-6 517323 2346 ns/op Fixes #184 PiperOrigin-RevId: 291815420 |
||
---|---|---|
.. | ||
BUILD | ||
glog.go | ||
json.go | ||
json_k8s.go | ||
json_test.go | ||
log.go | ||
log_test.go |