Skip to content

perf(parser): improve perf of parse_template_lit#11542

Merged
graphite-app[bot] merged 1 commit intomainfrom
c/06-07-perf_parser_improve_perf_of_parse_tempalte_lit
Jun 9, 2025
Merged

perf(parser): improve perf of parse_template_lit#11542
graphite-app[bot] merged 1 commit intomainfrom
c/06-07-perf_parser_improve_perf_of_parse_tempalte_lit

Conversation

@camc314
Copy link
Copy Markdown
Contributor

@camc314 camc314 commented Jun 7, 2025

No description provided.

Copy link
Copy Markdown
Contributor Author

camc314 commented Jun 7, 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.

@github-actions github-actions bot added A-parser Area - Parser C-performance Category - Solution not expected to change functional behavior, only performance labels Jun 7, 2025
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Jun 7, 2025

CodSpeed Instrumentation Performance Report

Merging #11542 will degrade performances by 5.56%

Comparing c/06-07-perf_parser_improve_perf_of_parse_tempalte_lit (f224585) with main (7bf25cb)

Summary

❌ 1 regressions
✅ 37 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
mangler[cal.com.tsx] 2.9 ms 3.1 ms -5.56%

@camc314
Copy link
Copy Markdown
Contributor Author

camc314 commented Jun 7, 2025

difference feels negligible, although this definitly does reduce some .grow_one calls + some allocations

Screenshot 2025-06-07 at 14 30 52

note in the benchmarks, RadixUIAdoptionSection.jsx and react.development.js have no template lit strings, so no perf change is expected ther

will leave up to Boshen/overlookmotel to decide if it's worth merging

@camc314 camc314 changed the base branch from c/06-07-feat_parser_add_better_debug_impl_for_token_ to graphite-base/11542 June 7, 2025 13:33
@camc314 camc314 force-pushed the graphite-base/11542 branch from 6f2d065 to def62f7 Compare June 7, 2025 13:33
@camc314 camc314 force-pushed the c/06-07-perf_parser_improve_perf_of_parse_tempalte_lit branch from f84cde2 to 9303057 Compare June 7, 2025 13:33
@camc314 camc314 changed the base branch from graphite-base/11542 to c/06-07-fix_parser_report_error_on_malformed_template_expressions June 7, 2025 13:33
@camc314 camc314 force-pushed the c/06-07-perf_parser_improve_perf_of_parse_tempalte_lit branch from 9303057 to 8d6012e Compare June 8, 2025 11:39
@camc314 camc314 force-pushed the c/06-07-fix_parser_report_error_on_malformed_template_expressions branch from def62f7 to 4d49760 Compare June 8, 2025 11:39
@graphite-app graphite-app bot changed the base branch from c/06-07-fix_parser_report_error_on_malformed_template_expressions to graphite-base/11542 June 8, 2025 11:46
@graphite-app graphite-app bot force-pushed the c/06-07-perf_parser_improve_perf_of_parse_tempalte_lit branch from 8d6012e to 3cc2caa Compare June 8, 2025 11:53
@graphite-app graphite-app bot force-pushed the graphite-base/11542 branch from 4d49760 to cb17dae Compare June 8, 2025 11:53
@graphite-app graphite-app bot changed the base branch from graphite-base/11542 to main June 8, 2025 11:54
@graphite-app graphite-app bot force-pushed the c/06-07-perf_parser_improve_perf_of_parse_tempalte_lit branch from 3cc2caa to 304179f Compare June 8, 2025 11:54
@overlookmotel overlookmotel changed the title perf(parser): improve perf of parse_tempalte_lit perf(parser): improve perf of parse_template_lit Jun 8, 2025
@camc314 camc314 marked this pull request as ready for review June 8, 2025 21:09
@camc314 camc314 force-pushed the c/06-07-perf_parser_improve_perf_of_parse_tempalte_lit branch from 304179f to a994073 Compare June 9, 2025 09:30
@camc314 camc314 requested a review from overlookmotel June 9, 2025 09:31
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Jun 9, 2025
Copy link
Copy Markdown
Member

Boshen commented Jun 9, 2025

Merge activity

@Boshen
Copy link
Copy Markdown
Member

Boshen commented Jun 9, 2025

Nice find!

@graphite-app graphite-app bot force-pushed the c/06-07-perf_parser_improve_perf_of_parse_tempalte_lit branch from a994073 to f224585 Compare June 9, 2025 10:20
@graphite-app graphite-app bot merged commit f224585 into main Jun 9, 2025
25 checks passed
@graphite-app graphite-app bot deleted the c/06-07-perf_parser_improve_perf_of_parse_tempalte_lit branch June 9, 2025 10:26
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-parser Area - Parser 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