"""difflib-fast — fast, byte-for-byte exact difflib Ratcliff-Obershelp similarity + clustering.
A drop-in for ``difflib.SequenceMatcher(None, a, b, autojunk=False).ratio()``, computed with a suffix
automaton (Rust), plus exact single-linkage clustering of a corpus.
``ratio`` is overloaded: two strings → one float; a list of ``(a, b)`` pairs → a list of floats,
computed across all cores inside Rust (rayon, GIL released) — the contention-free way to score a batch.
"""
=
...
...
"""Exact ``difflib.SequenceMatcher(None, a, b, autojunk=False).ratio()`` — byte-for-byte.
- ``ratio(a, b)`` → one float for the pair.
- ``ratio(pairs)`` → one float per ``(a, b)`` pair, computed in parallel across all cores inside
Rust (the GIL is released), so a batch saturates every core with no ``ThreadPoolExecutor`` and no
per-call overhead. ``ratio(pairs)[i] == ratio(*pairs[i])``, in order.
"""
return
return