[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch to avoid flicker in Isearch with lazy count

From: Juri Linkov
Subject: Re: Patch to avoid flicker in Isearch with lazy count
Date: Thu, 28 Jan 2021 20:48:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> Definitely, ‘lazy-highlight-delay-max-chars’ should not affect
>> ‘lazy-highlight-interval’ because with pauses between highlighting
>> portions of matches, when lazy-highlight-buffer-max-at-a-time is 20,
>> this could create a situation when only first 20 matches are counted,
>> and during the delay before processing the next portion of matches,
>> the users might think this is the final total of all existing matches,
>> so this is misleading for users.
> Good, I'll make it so.  By the way, why is the default
> ‘lazy-highlight-buffer-max-at-a-time’ (20) so low?  The overhead of
> creating a timer for every 20 matches is pretty substantial.  On my
> machine, a value like 500 or 1000 makes the lazy count finish visibly
> faster, and doesn't affect responsiveness even in huge files.

For historical reasons, when computers were slow.  Maybe now it's time
to bump up the default value.

reply via email to

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