Skip to content

Avoid hashing in the greedy contraction order - #205

Merged
mtfishman merged 2 commits into
mainfrom
mf/greedy-no-hashing
Oct 27, 2026
Merged

mtfishman merged 2 commits into
mainfrom
mf/greedy-no-hashing

Conversation

@mtfishman

@mtfishman mtfishman commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary

The Greedy contraction order hashed every index through Set-based union, symdiff and isdisjoint, rebound a variable its closures capture, and ran on index lists whose type is only known at runtime. Matching index names by linear scans, updating in place and adding a function barrier make the search about 7× faster, without changing the tree it returns.

Match index names by linear scans instead of `Set`-based `union`, `symdiff` and `isdisjoint`, and update the pending operands in place. The returned tree is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.90%. Comparing base (b98db7a) to head (04518a8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #205      +/-   ##
==========================================
+ Coverage   88.81%   88.90%   +0.09%     
==========================================
  Files          17       17              
  Lines         724      730       +6     
==========================================
+ Hits          643      649       +6     
  Misses         81       81              
Flag Coverage Δ
docs 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@mtfishman
mtfishman enabled auto-merge (squash) October 27, 2026 15:29
@mtfishman
mtfishman merged commit 97511f5 into main Oct 27, 2026
18 checks passed
@mtfishman
mtfishman deleted the mf/greedy-no-hashing branch October 27, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant