Skip to content

Run never-suspending async calls in place from stackless async bodies - #1744

Merged
ctate merged 1 commit into
mainfrom
ctate/run-never-suspending-c46ed9
Oct 22, 2026
Merged

ctate merged 1 commit into
mainfrom
ctate/run-never-suspending-c46ed9

Conversation

@ctate

@ctate ctate commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator
  • await Promise.all([...]) of calls to async functions that never suspend runs the calls in place and fills the result array directly, with Promise.all's microtask turns and rejection handling, without the entry promises or the combinator; a local array read only by the next statement's await takes the same path.
  • Never-suspending async bodies run with a plain call in programs that enter no AsyncLocalStorage store and read no stacks.
  • async-pipeline: 9.7 ms → 5.5 ms (−43.7%, paired A/B); no other runtime benchmark changes.

@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
scriptc Ready Ready Preview, v0 Oct 22, 2026 3:20am UTC

@ctate
ctate merged commit f5d6f7a into main Oct 22, 2026
62 of 64 checks passed
@ctate
ctate deleted the ctate/run-never-suspending-c46ed9 branch October 22, 2026 03:24

This branch was successfully deployed

1 active deployment
Preview — 2c5771e9 Deployed Oct 22, 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