Skip to content

Use WeakRef as the keys for the subexpression dictionary#4207

Open
odow wants to merge 1 commit into
masterfrom
od/hash2
Open

Use WeakRef as the keys for the subexpression dictionary#4207
odow wants to merge 1 commit into
masterfrom
od/hash2

Conversation

@odow

@odow odow commented Jul 24, 2026

Copy link
Copy Markdown
Member

A variant of #4204 that closes #4203

The downside to this approach is that we need to decide how frequently to filter the subexpression dictionary. If an element has been GC'd, it cannot be referenced in the future, so it is safe to remove.

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.96%. Comparing base (62b9c47) to head (568b8a1).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4207      +/-   ##
==========================================
+ Coverage   99.95%   99.96%   +0.01%     
==========================================
  Files          43       43              
  Lines        6306     6323      +17     
==========================================
+ Hits         6303     6321      +18     
+ Misses          3        2       -1     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Potential hash collision for nonlinear subexpressions

1 participant