emacs-devel
[Top][All Lists]
Advanced

[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: Stefan Monnier
Subject: Re: string_char_to_byte and string_byte_to_char micro-optimisation
Date: Sun, 16 Jun 2019 07:17:01 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> 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?

Yes, that's exactly the case I had in mind.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]