Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
|
Not worth it as it has to store the allocator in the thread_local, but the benefits are negligible. |

Memory Benchmark Results
Summary
This benchmark measures memory usage during formatting before and after removing the
allocatorfield fromAstNode(using thread-local storage instead).Per-File Results
Benchmark Files
Files sourced from real-world projects:
RadixUIAdoptionSection.jsx- Small JSX (61 lines)errors.ts- Vue.js compiler-core (191 lines)Search.tsx- Outline app (389 lines)core.js- Prettier main/core (426 lines)next.ts- Next.js server (619 lines)index.tsx- Next.js client (995 lines)handle-comments.js- Prettier comments handler (1092 lines)types.ts- Hono types (2370 lines)App.tsx- Excalidraw App component (11180 lines)How to Reproduce