You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce latency in fetch phase for large shard counts (#120419) (#120523)
We can reduce the latency of the fetch response by a non-trivial amount by moving
the context-freeing for irrelevant shards to the end of the forked action.
For large shard counts (and/or with security in the mix) the old comment is not entirely
correct and waking up the selector many times over + doing some authz work might consume
macroscopic time.
Moving the freeing to the end of the task causes the fetches to be sent out potentially much quicker,
reduces contention on the counter and reduces the impact of potential head-of-line blocking issues
on the connections that might see context freeing needlessly queue after actual fetches.
0 commit comments