Only use fast path for short items

pull/12558/head
Craig Tiller 7 years ago
parent 21b2c189d2
commit 213d2744b5
  1. 6
      src/core/lib/iomgr/executor.c

@ -205,8 +205,10 @@ static void executor_push(grpc_exec_ctx *exec_ctx, grpc_closure *closure,
ts = &g_thread_state[GPR_HASH_POINTER(exec_ctx, cur_thread_count)]; ts = &g_thread_state[GPR_HASH_POINTER(exec_ctx, cur_thread_count)];
} else { } else {
GRPC_STATS_INC_EXECUTOR_SCHEDULED_TO_SELF(exec_ctx); GRPC_STATS_INC_EXECUTOR_SCHEDULED_TO_SELF(exec_ctx);
grpc_closure_list_append(&ts->local_elems, closure, error); if (!is_short) {
return; grpc_closure_list_append(&ts->local_elems, closure, error);
return;
}
} }
thread_state *orig_ts = ts; thread_state *orig_ts = ts;

Loading…
Cancel
Save