aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Soheil Hassas Yeganeh <soheil@google.com>2018-09-25 16:48:14 -0400
committerGravatar Soheil Hassas Yeganeh <soheil@google.com>2018-09-25 16:48:14 -0400
commit46a97e5f550f12c9b1dbef7657a0ff42694a0932 (patch)
tree0fc8171146f99891cb90c220c3d171c35b4741ca /include
parentccbad108e45afb7c4fb361202cc0bae5ad7e5da2 (diff)
Avoid extra branches in grpc_error_get_(str|int).
Moving the check for "which" inside the for loop, will let the compiler unroll the loop and merge it with the branches grpc_error_is_especial. This is visible in the following godbolts: Before: https://godbolt.org/z/Nqujh1 After: https://godbolt.org/z/fA2PX-
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions