Skip to content

perf(transformer/object-rest-spread): pass Box to make_object_spread#10446

Merged
graphite-app[bot] merged 1 commit intomainfrom
04-16-perf_transformer_object-rest-spread_pass_box_to_make_object_spread_
Apr 16, 2025
Merged

perf(transformer/object-rest-spread): pass Box to make_object_spread#10446
graphite-app[bot] merged 1 commit intomainfrom
04-16-perf_transformer_object-rest-spread_pass_box_to_make_object_spread_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Apr 16, 2025

Avoid holding the large CallExpression type on stack by passing around Box<CallExpression> instead. It has to end up in a Box anyway, so box it as early as possible.

Also remove an unnecessary unbox() call.

Copy link
Member Author


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-performance Category - Solution not expected to change functional behavior, only performance labels Apr 16, 2025
@overlookmotel overlookmotel marked this pull request as ready for review April 16, 2025 14:05
@overlookmotel overlookmotel requested a review from Dunqing as a code owner April 16, 2025 14:05
@codspeed-hq
Copy link

codspeed-hq bot commented Apr 16, 2025

CodSpeed Instrumentation Performance Report

Merging #10446 will not alter performance

Comparing 04-16-perf_transformer_object-rest-spread_pass_box_to_make_object_spread_ (25e4c53) with main (77b6f7e)

Summary

✅ 36 untouched benchmarks

@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Apr 16, 2025
Copy link
Member Author

overlookmotel commented Apr 16, 2025

Merge activity

…ad` (#10446)

Avoid holding the large `CallExpression` type on stack by passing around `Box<CallExpression>` instead. It has to end up in a `Box` anyway, so box it as early as possible.

Also remove an unnecessary `unbox()` call.
@graphite-app graphite-app bot force-pushed the 04-16-perf_transformer_object-rest-spread_pass_box_to_make_object_spread_ branch from fa08299 to 25e4c53 Compare April 16, 2025 16:27
@graphite-app graphite-app bot merged commit 25e4c53 into main Apr 16, 2025
29 checks passed
@graphite-app graphite-app bot deleted the 04-16-perf_transformer_object-rest-spread_pass_box_to_make_object_spread_ branch April 16, 2025 16:34
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Apr 16, 2025
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-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants