Skip to content

Conversation

@dstrain115
Copy link
Collaborator

  • This function was building the Const message twice.
  • Instead, write directly to the proto message.
  • This speeds up run contexts with Const values up by about 40%.

- This function was building the Const message twice.
- Instead, write directly to the proto message.
- This speeds up run contexts with Const values up by about 40%.
@dstrain115 dstrain115 requested review from a team, verult, vtomole and wcourtney as code owners August 23, 2025 00:31
@github-actions github-actions bot added the size: S 10< lines changed <50 label Aug 23, 2025
@codecov
Copy link

codecov bot commented Aug 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.50%. Comparing base (dc69fa1) to head (731c8e7).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7601   +/-   ##
=======================================
  Coverage   97.50%   97.50%           
=======================================
  Files        1103     1103           
  Lines       99695    99683   -12     
=======================================
- Hits        97209    97198   -11     
+ Misses       2486     2485    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

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

LGTM with a tiny suggestion.

Co-authored-by: Pavol Juhas <pavol.juhas@gmail.com>
@dstrain115 dstrain115 added this pull request to the merge queue Aug 25, 2025
Merged via the queue into quantumlib:main with commit 65c5691 Aug 25, 2025
35 checks passed
@dstrain115 dstrain115 deleted the build_const branch August 25, 2025 22:58
ddddddanni pushed a commit to ddddddanni/Cirq that referenced this pull request Sep 1, 2025
- This function was building the Const message twice.
- Instead, write directly to the proto message.
- This speeds up run contexts with Const values up by about 40%.

---------

Co-authored-by: Pavol Juhas <pavol.juhas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: S 10< lines changed <50

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants