spack/lib
Todd Gamblin e4b898f7c3
lazy_lexicographic_ordering: Add short-circuiting with _cmp_fast_eq
Add a `_cmp_fast_eq` method to the `lazy_lexicographic_ordering` protocol
so that implementors can short-circuit full comparison if they know (e.g.
with a hash) that objects are equal (or not).

`_cmp_fast_eq` can return True (known true), False (known false), or
None (unknown -- do full comparison).

Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
2025-05-19 15:59:03 -07:00
..
spack lazy_lexicographic_ordering: Add short-circuiting with _cmp_fast_eq 2025-05-19 15:59:03 -07:00