Skip to content

refactor(transformer/refresh): do not unnecessarily consume Vec#10712

Merged
graphite-app[bot] merged 1 commit intomainfrom
04-29-refactor_transformer_refresh_do_not_unnecessarily_consume_vec_
Apr 30, 2025
Merged

refactor(transformer/refresh): do not unnecessarily consume Vec#10712
graphite-app[bot] merged 1 commit intomainfrom
04-29-refactor_transformer_refresh_do_not_unnecessarily_consume_vec_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Apr 30, 2025

Follow-on after #10656.

There's no need to consume self.registrations because we only need a reference to binding (BoundIdentifier), and the persistent_id is an Atom, which is Copy.

Just iterate over &self.registrations.

@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 Apr 30, 2025
Copy link
Member Author

overlookmotel commented Apr 30, 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.

@overlookmotel overlookmotel marked this pull request as ready for review April 30, 2025 08:27
@overlookmotel overlookmotel requested a review from Dunqing as a code owner April 30, 2025 08:27
@codspeed-hq
Copy link

codspeed-hq bot commented Apr 30, 2025

CodSpeed Instrumentation Performance Report

Merging #10712 will not alter performance

Comparing 04-29-refactor_transformer_refresh_do_not_unnecessarily_consume_vec_ (c4a5dba) with main (2aa3c4c)

Summary

✅ 33 untouched benchmarks
🆕 3 new benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
🆕 linter[RadixUIAdoptionSection.jsx] N/A 2.7 ms N/A
🆕 linter[cal.com.tsx] N/A 1.2 s N/A
🆕 linter[checker.ts] N/A 3.1 s N/A

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Apr 30, 2025
Copy link
Member

Boshen commented Apr 30, 2025

Merge activity

…0712)

Follow-on after #10656.

There's no need to consume `self.registrations` because we only need a reference to `binding` (`BoundIdentifier`), and the `persistent_id` is an `Atom`, which is `Copy`.

Just iterate over `&self.registrations`.
@graphite-app graphite-app bot force-pushed the 04-29-perf_transformer_refresh_reuse_existing_atom_ branch from aa11464 to 2aa3c4c Compare April 30, 2025 10:10
@graphite-app graphite-app bot force-pushed the 04-29-refactor_transformer_refresh_do_not_unnecessarily_consume_vec_ branch from 7fd3575 to c4a5dba Compare April 30, 2025 10:11
Base automatically changed from 04-29-perf_transformer_refresh_reuse_existing_atom_ to main April 30, 2025 10:17
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Apr 30, 2025
@graphite-app graphite-app bot merged commit c4a5dba into main Apr 30, 2025
27 checks passed
@graphite-app graphite-app bot deleted the 04-29-refactor_transformer_refresh_do_not_unnecessarily_consume_vec_ branch April 30, 2025 10:18
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.

3 participants