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
{{ message }}
Repository navigation
[Other]: Perf - Daemon stream reader allocates a throwaway array on every socket read #30995
releaseDrainWaiters in src/main/daemon/daemon-stream-ingest-turn-bound.ts runs on every read of the daemon stream socket. Each call runs drainWaiters.filter(...), which allocates a closure and an array, even though waiters only exist while a disconnect is draining. In normal use the list is always empty, so that work is wasted on every read.
Proposed fix: return early when drainWaiters is empty.
Activity