6d8c4d62bf
Sort all match positions and scan linearly instead of checking every a-b pair. Early-exits on overlap (gap=0) or once the gap drops below the threshold. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>