Expand description
Bounded priority pool for streaming match collection
Implements a bounded pool that keeps the best matches across multiple dimensions (error, complexity) with deduplication.
§Key Design
Keys use Expression directly rather than String for zero-allocation
deduplication. Since Expression uses SmallVec<[Symbol; 21]>, expressions
within the length limit stay inline on the stack, avoiding heap allocation
during hashing and comparison.
Structs§
- EqnKey
- Keys for full equation deduplication (LHS + RHS pair)
- LhsKey
- Keys for LHS-only deduplication
- Pool
Stats - Statistics from pool operations
- Signature
Key - Signature for operator/constant pattern (used for “interesting” dedupe)
- TopK
Pool - Bounded pool for collecting matches
Enums§
- Ranking
Mode - Match ranking mode for pool eviction and final ordering.
Functions§
- compare_
matches - Compare two matches according to the selected ranking mode.
- legacy_
parity_ score_ expr - Compute legacy (original RIES style) signed parity score for an expression.
- legacy_
parity_ score_ match - Compute legacy (original RIES style) signed parity score for a match.