all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#48581: 27.2; Default value of lazy-highlight-buffer-max-at-a-time is too low
@ 2021-05-22  9:25 Augusto Stoffel
  2021-05-22  9:44 ` Eli Zaretskii
  2021-05-25 20:29 ` Juri Linkov
  0 siblings, 2 replies; 10+ messages in thread
From: Augusto Stoffel @ 2021-05-22  9:25 UTC (permalink / raw)
  To: 48581

The value of lazy-highlight-buffer-max-at-a-time determines how long
it takes to finish computing the isearch lazy count.  The current
default value of 20 seems suboptimal.

I made a simple experiment measuring the (real) time to count the
~15000 matches of the string "e" in the file isearch.el, with the
following results:

lazy-highlight-buffer-max-at-a-time | time to finish counting
20 (current setting)                | 1.5 s
50                                  | 0.8 s
100                                 | 0.6 s
200                                 | 0.5 s
nil (do it all at once)             | 0.4 s

Based on this, I would like to suggest changing the default to 200, or
something in that order of magnitude.

The downside of this change would be an increase in the time Emacs is
unresponsive doing lazy counting/highlighting.  However, this time
remains below a few milliseconds in a typical case, and on the other
hand a sufficiently complex regexp on a sufficiently large buffer can
hang isearch even with the current default settings.





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-05-31 20:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-22  9:25 bug#48581: 27.2; Default value of lazy-highlight-buffer-max-at-a-time is too low Augusto Stoffel
2021-05-22  9:44 ` Eli Zaretskii
2021-05-22 10:49   ` Augusto Stoffel
2021-05-22 11:08     ` Eli Zaretskii
2021-05-22 12:17       ` Augusto Stoffel
2021-05-22 12:30         ` Eli Zaretskii
2021-05-22 13:14           ` Augusto Stoffel
2021-05-22 13:35             ` Eli Zaretskii
2021-05-25 20:29 ` Juri Linkov
2021-05-31 20:33   ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.