Skip to content

refactor(ast): inline Comment newline flags setters#11150

Merged
graphite-app[bot] merged 1 commit intomainfrom
05-18-refactor_ast_inline_comment_newline_flags_setters
May 19, 2025
Merged

refactor(ast): inline Comment newline flags setters#11150
graphite-app[bot] merged 1 commit intomainfrom
05-18-refactor_ast_inline_comment_newline_flags_setters

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented May 19, 2025

Follow-on after #11096. Add #[inline] to these trivial functions. Usually they're called with a static value, so if they're inlined compiler will be able to remove the branch.

Probably compiler would inline these anyway as they're so small, but just to make sure.

@github-actions github-actions bot added A-ast Area - AST C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels May 19, 2025
Copy link
Member Author

overlookmotel commented May 19, 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 May 19, 2025 09:41
@overlookmotel overlookmotel requested a review from camchenry May 19, 2025 09:41
@codspeed-hq
Copy link

codspeed-hq bot commented May 19, 2025

CodSpeed Instrumentation Performance Report

Merging #11150 will improve performances by 4.19%

Comparing 05-18-refactor_ast_inline_comment_newline_flags_setters (e5438dc) with main (385b84d)

Summary

⚡ 1 improvements
✅ 37 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
mangler[cal.com.tsx] 3 ms 2.9 ms +4.19%

@overlookmotel
Copy link
Member Author

overlookmotel commented May 19, 2025

This shows +3% on one of minifier benchmarks! But I assume that's erroneous - our benchmarks have become very noisy recently.

@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label May 19, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented May 19, 2025

Merge activity

Follow-on after #11096. Add `#[inline]` to these trivial functions. Usually they're called with a static value, so if they're inlined compiler will be able to remove the branch.

Probably compiler would inline these anyway as they're so small, but just to make sure.
@graphite-app graphite-app bot force-pushed the 05-18-refactor_ast_inline_comment_newline_flags_setters branch from 82e4dd2 to e5438dc Compare May 19, 2025 11:44
@graphite-app graphite-app bot merged commit e5438dc into main May 19, 2025
23 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 19, 2025
@graphite-app graphite-app bot deleted the 05-18-refactor_ast_inline_comment_newline_flags_setters branch May 19, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST 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