Skip to content

perf(estree/tokens): speed up JSON stringifying with raw writes#19735

Closed
overlookmotel wants to merge 1 commit intographite-base/19735from
om/02-26-perf_estree_tokens_speed_up_json_stringifying_with_raw_writes
Closed

perf(estree/tokens): speed up JSON stringifying with raw writes#19735
overlookmotel wants to merge 1 commit intographite-base/19735from
om/02-26-perf_estree_tokens_speed_up_json_stringifying_with_raw_writes

Conversation

@overlookmotel
Copy link
Copy Markdown
Member

@overlookmotel overlookmotel commented Feb 26, 2026

WIP. This optimization is (mostly) sound, but it's pretty nasty. Would be better to implement in ESTree trait methods directly, so there's no unsafe at call sites. Made this PR mostly to see what CodSpeed says (it says 🚀).

@github-actions github-actions bot added the C-performance Category - Solution not expected to change functional behavior, only performance label Feb 26, 2026
This was referenced Feb 26, 2026
This was referenced Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant