Repository navigation
perf: start statements directly when the queue is free - #502
Open
chrispader wants to merge 1 commit into
Open
chrispader wants to merge 1 commit into
chrispader wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
chrispader
force-pushed
the
async-overhead/idle-queue-fast-path
branch
from
November 16, 2026 15:30
6316188 to
2df5881
Compare
Every async statement went through the queue's new Promise, an entry object, two closures and an array push and splice, even when nothing was waiting. When no transaction or synchronous call holds the queue and nothing is queued, a statement now starts right away and chains the queue update onto its own promise. Statements behind a transaction still wait in order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chrispader
force-pushed
the
async-overhead/idle-queue-fast-path
branch
from
November 16, 2026 16:33
2df5881 to
b9b4549
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each async statement went through the queue's
new Promise, a queue entry, two closures, and an array push and splice, even when nothing else was waiting. When nothing is queued and no transaction or synchronous call holds the connection, a statement now starts right away and chains the queue update onto its own promise. Statements submitted while a transaction runs or waits still queue behind it in order.🤖 Generated with Claude Code