From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66512: 30.0.50; flymake with checkdoc slows down typing in large Elisp buffers Date: Fri, 13 Oct 2023 09:37:35 +0300 Message-ID: <83edhzt4cw.fsf@gnu.org> References: <87r0lz6pb8.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8030"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66512@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 13 08:38:51 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qrBow-0001y5-IA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Oct 2023 08:38:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrBom-0005Lm-Jz; Fri, 13 Oct 2023 02:38:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrBol-0005LX-BK for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 02:38:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrBol-0008KB-3l for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 02:38:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrBp7-0004uQ-Nr for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 02:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Oct 2023 06:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66512 X-GNU-PR-Package: emacs Original-Received: via spool by 66512-submit@debbugs.gnu.org id=B66512.169717909618812 (code B ref 66512); Fri, 13 Oct 2023 06:39:01 +0000 Original-Received: (at 66512) by debbugs.gnu.org; 13 Oct 2023 06:38:16 +0000 Original-Received: from localhost ([127.0.0.1]:44646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrBoN-0004tM-VH for submit@debbugs.gnu.org; Fri, 13 Oct 2023 02:38:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrBoI-0004t7-P7 for 66512@debbugs.gnu.org; Fri, 13 Oct 2023 02:38:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrBnp-0008Aw-Cs; Fri, 13 Oct 2023 02:37:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=aPZ0KJKtDXEvwfcbY6jMSsxBF7QugnGiYrIi+PcYVyE=; b=HPCDPu/4eJLb VV/TzsBgFhzSHwiIV76pS2upxLORnUYeO2jmA1O4Hqe+apSyBcw1SxgV3OJZ45KKhDR/i0BcjzMrf fS5mYuvApNWIf3085c8XhZk9lgBvRTgOgGsXvPDfd5Me7z6/W7HkdY0rSWFg4M5Hu40GP3LEsDFI2 ssAgks+4SXL4GQuwPPiq3BbpC8MC2TfEDGyBHJzn0F9Pae4nH+SeS4M7KzzGBOqiu50NduOyK+MX4 i/tCS7zbzUtY3bJW3IrUuRVjMIUhpgKEOhgiOR15bSLISQvL03DBxDTE4l0zvbwr98xMlRP8qTySq WefLqzQv5PmUkELM9zSeQQ==; In-Reply-To: <87r0lz6pb8.fsf@gmail.com> (message from Visuwesh on Fri, 13 Oct 2023 11:23:31 +0530) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272338 Archived-At: > From: Visuwesh > 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