Skip to content

Conversation

overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Mar 11, 2025

Follow-on after #9310. Pure refactor. Use shorter AstBuilder calls where possible.

It's always preferable to use the alloc_* methods where possible, as it maximizes the chances compiler can see it can construct nodes directly in arena, rather than construct on stack and then copy to arena.

Copy link
Member Author

overlookmotel commented Mar 11, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions github-actions bot added A-transformer Area - Transformer / Transpiler C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Mar 11, 2025
@overlookmotel overlookmotel marked this pull request as ready for review March 11, 2025 06:46
@overlookmotel overlookmotel requested a review from Dunqing as a code owner March 11, 2025 06:46
Copy link

codspeed-hq bot commented Mar 11, 2025

CodSpeed Performance Report

Merging #9674 will not alter performance

Comparing 03-11-refactor_transformer_using_shorten_astbuilder_calls (3180c65) with main (474a57b)

Summary

✅ 39 untouched benchmarks

@camc314 camc314 force-pushed the 03-11-refactor_transformer_using_add_more_comments_and_amend_some branch 2 times, most recently from 7fa8f6b to cd610fa Compare March 11, 2025 09:44
@camc314 camc314 force-pushed the 03-11-refactor_transformer_using_shorten_astbuilder_calls branch from ccde3da to fc25c3b Compare March 11, 2025 09:44
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Mar 11, 2025
Copy link
Contributor

graphite-app bot commented Mar 11, 2025

Merge activity

@graphite-app graphite-app bot force-pushed the 03-11-refactor_transformer_using_add_more_comments_and_amend_some branch from cd610fa to 06bd816 Compare March 11, 2025 09:54
graphite-app bot pushed a commit that referenced this pull request Mar 11, 2025
Follow-on after #9310. Pure refactor. Use shorter `AstBuilder` calls where possible.

It's always preferable to use the `alloc_*` methods where possible, as it maximizes the chances compiler can see it can construct nodes directly in arena, rather than construct on stack and then copy to arena.
@graphite-app graphite-app bot force-pushed the 03-11-refactor_transformer_using_shorten_astbuilder_calls branch from fc25c3b to 86ff47a Compare March 11, 2025 09:54
Base automatically changed from 03-11-refactor_transformer_using_add_more_comments_and_amend_some to main March 11, 2025 10:10
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 11, 2025
Follow-on after #9310. Pure refactor. Use shorter `AstBuilder` calls where possible.

It's always preferable to use the `alloc_*` methods where possible, as it maximizes the chances compiler can see it can construct nodes directly in arena, rather than construct on stack and then copy to arena.
@graphite-app graphite-app bot force-pushed the 03-11-refactor_transformer_using_shorten_astbuilder_calls branch from 86ff47a to 3180c65 Compare March 11, 2025 10:14
@graphite-app graphite-app bot merged commit 3180c65 into main Mar 11, 2025
33 checks passed
@graphite-app graphite-app bot deleted the 03-11-refactor_transformer_using_shorten_astbuilder_calls branch March 11, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-transformer Area - Transformer / Transpiler C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants