Skip to content

refactor(transformer/class-properties): exit transform_class faster if nothing to do#7586

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-02-refactor_transformer_class-properties_exit_transform_class_faster_if_nothing_to_do
Dec 3, 2024
Merged

refactor(transformer/class-properties): exit transform_class faster if nothing to do#7586
graphite-app[bot] merged 1 commit intomainfrom
12-02-refactor_transformer_class-properties_exit_transform_class_faster_if_nothing_to_do

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Dec 2, 2024

Small optimization. Class properties transform doesn't have to do anything if the class has no properties, which will often be the case. Exit sooner in this case.

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 2, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@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 Dec 2, 2024
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 2, 2024

CodSpeed Performance Report

Merging #7586 will not alter performance

Comparing 12-02-refactor_transformer_class-properties_exit_transform_class_faster_if_nothing_to_do (ebd11fb) with 11-28-refactor_transformer_class-properties_resolvedprivateprop_type (dccff38)

Summary

✅ 30 untouched benchmarks

@overlookmotel overlookmotel force-pushed the 11-28-refactor_transformer_class-properties_resolvedprivateprop_type branch from b9200ad to 89d67f6 Compare December 3, 2024 01:59
@overlookmotel overlookmotel force-pushed the 12-02-refactor_transformer_class-properties_exit_transform_class_faster_if_nothing_to_do branch from 2d03bc9 to 594ad33 Compare December 3, 2024 01:59
@overlookmotel overlookmotel marked this pull request as ready for review December 3, 2024 02:20
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Dec 3, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 3, 2024

Merge activity

… if nothing to do (#7586)

Small optimization. Class properties transform doesn't have to do anything if the class has no properties, which will often be the case. Exit sooner in this case.
@Dunqing Dunqing force-pushed the 11-28-refactor_transformer_class-properties_resolvedprivateprop_type branch from 89d67f6 to dccff38 Compare December 3, 2024 07:47
@Dunqing Dunqing force-pushed the 12-02-refactor_transformer_class-properties_exit_transform_class_faster_if_nothing_to_do branch from 594ad33 to ebd11fb Compare December 3, 2024 07:48
Base automatically changed from 11-28-refactor_transformer_class-properties_resolvedprivateprop_type to main December 3, 2024 08:12
@graphite-app graphite-app bot merged commit ebd11fb into main Dec 3, 2024
@graphite-app graphite-app bot deleted the 12-02-refactor_transformer_class-properties_exit_transform_class_faster_if_nothing_to_do branch December 3, 2024 08:17
@oxc-bot oxc-bot mentioned this pull request Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue 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.

1 participant