Skip to content

perf: start statements directly when the queue is free - #502

Open
chrispader wants to merge 1 commit into
async-overhead/sync-beginfrom
async-overhead/idle-queue-fast-path
Open

chrispader wants to merge 1 commit into
async-overhead/sync-beginfrom
async-overhead/idle-queue-fast-path

Conversation

@chrispader

@chrispader chrispader commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

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

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-native-nitro-sqlite Ready Ready Preview Nov 16, 2026 4:34pm UTC

Request Review

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>

This branch was successfully deployed

1 active deployment
Preview — b9b45494 Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant