Skip to content

refactor(transform/styled-components): shorten code#12316

Merged
graphite-app[bot] merged 1 commit intomainfrom
07-16-refactor_transform_styled-components_shorten_code
Jul 16, 2025
Merged

refactor(transform/styled-components): shorten code#12316
graphite-app[bot] merged 1 commit intomainfrom
07-16-refactor_transform_styled-components_shorten_code

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jul 16, 2025

Pure refactor. Use for loop instead of manually updating quasi_index.

Convert quasis to a mutable slice before the loop, so hopefully compiler can see that quasis cannot change its length during the loop, and so no bounds checks are required on quasis[quasi_index] accesses.

@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 Jul 16, 2025
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.

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

codspeed-hq bot commented Jul 16, 2025

CodSpeed Instrumentation Performance Report

Merging #12316 will not alter performance

Comparing 07-16-refactor_transform_styled-components_shorten_code (7d1d515) with main (7aea02c)

Summary

✅ 34 untouched benchmarks

@overlookmotel overlookmotel force-pushed the 07-16-refactor_transform_styled-components_shorten_code branch from 9285e03 to 231b3b0 Compare July 16, 2025 08:40
@overlookmotel overlookmotel force-pushed the 07-16-refactor_transform_styled-components_shorten_code branch from 231b3b0 to 86ade4d Compare July 16, 2025 12:54
Copy link
Member

@Dunqing Dunqing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Jul 16, 2025
Copy link
Member

Dunqing commented Jul 16, 2025

Merge activity

Pure refactor. Use `for` loop instead of manually updating `quasi_index`.

Convert `quasis` to a mutable slice before the loop, so hopefully compiler can see that `quasis` cannot change its length during the loop, and so no bounds checks are required on `quasis[quasi_index]` accesses.
@graphite-app graphite-app bot force-pushed the 07-16-refactor_transform_styled-components_shorten_code branch from 86ade4d to 7d1d515 Compare July 16, 2025 13:04
@graphite-app graphite-app bot merged commit 7d1d515 into main Jul 16, 2025
24 checks passed
@graphite-app graphite-app bot deleted the 07-16-refactor_transform_styled-components_shorten_code branch July 16, 2025 13:13
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 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-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