summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-02-11 12:17:21 +1100
committerMaxime Coste <mawww@kakoune.org>2024-02-11 12:17:21 +1100
commitbd91a255e49c81e3d20c43359facac95191e041a (patch)
treef59f0f609e397d477fae6c46bc53d0b4295f29da /rc/tools/python
parent8d60e19484d9cd5a49ed6d84c84f522092601d9f (diff)
Do not decode utf8 while looking for next regex match start candidate
If the first byte in the multi-byte utf8 sequence does not match, it means the "other" character is not set, so none of the sequence byte will match (as they are all with the MSB set). This tightens the critical loop which ends up running faster in most cases.
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions