Skip to content

perf: Cache serialized extensions to speed up encoding - #3210

Merged
aborgna-q merged 2 commits into
mainfrom
ab/extension-serialization-cache
Sep 1, 2026
Merged

perf: Cache serialized extensions to speed up encoding#3210
aborgna-q merged 2 commits into
mainfrom
ab/extension-serialization-cache

Expand comment about cache behaviour

d98ef26
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Sep 1, 2026 in 0s

81.55% (-0.01%) compared to 3aa55e9

View this Pull Request on Codecov

81.55% (-0.01%) compared to 3aa55e9

Details

Codecov Report

❌ Patch coverage is 73.41772% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.55%. Comparing base (3aa55e9) to head (d98ef26).

Files with missing lines Patch % Lines
hugr-core/src/extension.rs 73.68% 8 Missing and 7 partials ⚠️
hugr-core/src/envelope/reader.rs 77.77% 0 Missing and 4 partials ⚠️
hugr-core/src/envelope/writer.rs 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3210      +/-   ##
==========================================
- Coverage   81.55%   81.55%   -0.01%     
==========================================
  Files         242      242              
  Lines       47309    47373      +64     
  Branches    40906    40970      +64     
==========================================
+ Hits        38584    38633      +49     
- Misses       6713     6721       +8     
- Partials     2012     2019       +7     

☔ View full report in Codecov by Harness.
📢 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.