mirror of https://github.com/grpc/grpc.git
Core; fix avoidable work (allocs+CPU) when logs enabled but trace level means work will not be used (#31098)
core; ref #30979 1. avoid calling `grpc_dump_slice` if the log level is too low (and the result will be ignored) 2. use `GRPC_TRACE_FLAG_ENABLED(x)` over `x.enabled()` in the touched code --------- Co-authored-by: Yash Tibrewal <yashkt@google.com>pull/32460/head^2
parent
d93d0022cd
commit
14083ed106
4 changed files with 21 additions and 13 deletions
Loading…
Reference in new issue