[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string_char_to_byte and string_byte_to_char micro-optimisation
From: |
Noam Postavsky |
Subject: |
Re: string_char_to_byte and string_byte_to_char micro-optimisation |
Date: |
Sat, 15 Jun 2019 07:11:47 -0400 |
On Sat, 15 Jun 2019 at 03:49, Stefan Monnier <address@hidden> wrote:
> be noticeably slowed down by charpos<->bytepos conversion in
> "pathological" cases where we `start` in the middle of a longish string
> and we immediately find a short match.
Would this include cases where you iterate through string-match
results in a loop, incrementing the `start` argument each time, as in
replace-regexp-in-string? (I guess if its REP argument is a function
which aref's another multibyte string, then it should miss the cache
each time).
Re: string_char_to_byte and string_byte_to_char micro-optimisation, Robert Pluim, 2019/06/17