GNU bug report logs - #66512
30.0.50; flymake with checkdoc slows down typing in large Elisp buffers

Previous Next

Package: emacs;

Reported by: Visuwesh <visuweshm <at> gmail.com>

Date: Fri, 13 Oct 2023 05:55:01 UTC

Severity: normal

Found in version 30.0.50

Full log


Message #8 received at 66512 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Visuwesh <visuweshm <at> gmail.com>
Cc: 66512 <at> debbugs.gnu.org
Subject: Re: bug#66512: 30.0.50;
 flymake with checkdoc slows down typing in large Elisp buffers
Date: Fri, 13 Oct 2023 09:37:35 +0300
> From: Visuwesh <visuweshm <at> gmail.com>
> Date: Fri, 13 Oct 2023 11:23:31 +0530
> 
> flymake-mode is largely unusable in large Elisp buffers with checkdoc
> enabled as it sometimes takes a second for the typed words to be
> displayed, and there are too many micro freezes.  I have attached two
> profiles one from emacs -Q, and one from my personal configuration saved
> using the command profiler-report-write-profile.  Both point to
> checkdoc-this-string-valid being the time consuming function.
> 
> To reproduce,
> 
>     1. src/emacs -Q
>     2. C-x C-f lisp/org/org.el RET
>     3. M-x flymake-mode RET
>     4. M-g i org-drag-line-forward RET
>     5. Move the point to be inside the docstring, and start typing away.
>        You should notice the latency sooner or later.
> 
> I can reproduce this in my fairly long init.el file too (~10k lines) and
> I was forced to turn off checkdoc for the typing to be bearable in my
> init.el file.

Thanks.

This report needs more info:

  . the file you used which produces this slowdown
  . the profile is not fully expanded (some functions have "+")
  . for more detailed profile, please load the relevant Lisp files as
    *.el (not *.elc), and repeat the profiling
  . if the slowdown is visible in "emacs -Q", the profile from that is
    more important than the one from your customized Emacs




This bug report was last modified 1 year and 245 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.