Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jul 3, 2025

Small optimization to codegen. TemplateLiterals always have 1 more quasi than expression. Avoid checking for the presence of an expression on each turn of the loop by zipping the 2 iterators.

@github-actions github-actions bot added A-codegen Area - Code Generation C-performance Category - Solution not expected to change functional behavior, only performance labels Jul 3, 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 3, 2025 01:09
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 3, 2025

CodSpeed Instrumentation Performance Report

Merging #12041 will not alter performance

Comparing 07-03-perf_codegen_reduce_branches_printing_templateliteral_s (41ec54e) with main (387762d)

Summary

✅ 38 untouched benchmarks

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

Dunqing commented Jul 3, 2025

Merge activity

Small optimization to codegen. `TemplateLiteral`s always have 1 more `quasi` than `expression`. Avoid checking for the presence of an expression on each turn of the loop by zipping the 2 iterators.
@graphite-app graphite-app bot force-pushed the 07-03-perf_codegen_reduce_branches_printing_templateliteral_s branch from 3c9f844 to 41ec54e Compare July 3, 2025 04:35
@graphite-app graphite-app bot merged commit 41ec54e into main Jul 3, 2025
24 checks passed
@graphite-app graphite-app bot deleted the 07-03-perf_codegen_reduce_branches_printing_templateliteral_s branch July 3, 2025 04:42
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-codegen Area - Code Generation 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.

3 participants