mirror of
https://github.com/python/cpython.git
synced 2026-06-22 11:03:15 -04:00
97dea30914
Scan the nfc_first/nfc_last reindex tables comparing only .start, range-check the candidate once, and terminate on a sentinel above every codepoint, so each entry costs a single comparison. ~2x faster on non-Latin and combining-heavy NFC/NFKC input; no new data tables. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>