From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nick H Newsgroups: gmane.emacs.bugs Subject: bug#26525: `sit-for' in Flyspell slows typing down, hogs 90% of CPU Date: Thu, 03 Sep 2020 11:15:50 +1200 Message-ID: <6ec4bdf403e191db33a49809e6018025f5624bcf.camel@tenpoint.co.nz> References: <48f694f6-7540-a57b-eb82-3fe5024d9554@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33626"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) Cc: Damien Cassou , =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel , 26525@debbugs.gnu.org To: stefan@marxist.se Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 03 01:17:12 2020 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 1kDc06-0008aJ-4U for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Sep 2020 01:17:10 +0200 Original-Received: from localhost ([::1]:42980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDc05-0002ev-3H for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 19:17:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDbzy-0002em-Uc for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 19:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDbzy-0003uW-Lx for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 19:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDbzy-0002c4-I4 for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 19:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nick H Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Sep 2020 23:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26525 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo unreproducible Original-Received: via spool by 26525-submit@debbugs.gnu.org id=B26525.15990885719957 (code B ref 26525); Wed, 02 Sep 2020 23:17:02 +0000 Original-Received: (at 26525) by debbugs.gnu.org; 2 Sep 2020 23:16:11 +0000 Original-Received: from localhost ([127.0.0.1]:32816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDbz6-0002aT-Ct for submit@debbugs.gnu.org; Wed, 02 Sep 2020 19:16:10 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:33583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDbz1-0002Zf-4D for 26525@debbugs.gnu.org; Wed, 02 Sep 2020 19:16:07 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 89EFC5C00FD; Wed, 2 Sep 2020 19:15:57 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 02 Sep 2020 19:15:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpoint.co.nz; h=message-id:subject:from:to:cc:date:in-reply-to:content-type :mime-version:content-transfer-encoding; s=fm1; bh=F9EYSzvKvsMui wLObhQ4ep9cMvXcOJ14Vb6sVct6AW8=; b=L1nXHJ1swoH2Vuc3qOEz2pU55NjVS PFV92TJltn8CYsEzLLWKL8dFfoHKfYAVyA1oqFOFz83PdUkhrKGAJcNxP/TRqVT2 QMeMwIwtc7E+5IUXMqQAZ0hBRNUTa6ImibdsvcT5BxSwYeagvwHL2lSZWSIx+aSu 4vtAtwxJf7motB9IAPhTc4oV9LhK2IBlZPKurr7WfdW7ONKj9gSiYLfINQawDpn4 LzvE5EB4L1QsNvuZi7l8eUBVURoYm16G/YUbWoLKa6u4f2jrMczEsy1azZ2vdssJ 0/w19bWD0IUdY0Kg20XzMkP3eZkk/WhPELoKzo6tXaqFxUmEhQR5aPVqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=F9EYSzvKvsMuiwLObhQ4ep9cMvXcOJ14Vb6sVct6AW8=; b=GeJC0sTq OaTuznpk4qS7/J1fkdb8eUJy59Px1Bl7pruubZoFoxRSQYYHfIi39EaSwT70wV1W gllKQpTRnrp+SpcjhW2lvR+0u8Zis1ksJnAqRJTEdJx5aFkq922NnIVBsYXnsxv8 5/EIp0GSRxhx00UWj4UedK46uHm4rrdr6bEu/8Vnf7G6xOBw/p/JrhpBiSWAGgQU d4rqmx7edAz39rcBrdt9d4Y2RoXFiv8+AStNtiQ+sAW2oOSDfjXfUVNaRYXj2+a8 EUTMGNIErFN5/KtNKtlYon0tBMYJ9yGovP+yfAtZSWbII3Gt7M+lGO0poZz+1kQJ QKOgnfuzd9XWRw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudegtddgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkffuhffvffgjtggfggfgsehtjeertddtreejnecuhfhrohhmpefpihgtkhcu jfcuoehnihgtkhesthgvnhhpohhinhhtrdgtohdrnhiiqeenucggtffrrghtthgvrhhnpe fftddvtefhvefghfdtudekffehkeelveeitdeihedvveeiffffjeeffeekteetvdenucfk phepuddvhedrvdefledruddvuddrjeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepnhhitghksehtvghnphhoihhnthdrtghordhnii X-ME-Proxy: Original-Received: from Nicks-Thinkpad.localdomain (125-239-121-76-vdsl.sparkbb.co.nz [125.239.121.76]) by mail.messagingengine.com (Postfix) with ESMTPA id AFAD93280068; Wed, 2 Sep 2020 19:15:54 -0400 (EDT) In-Reply-To: CADwFkmnHMYW1yVUHUpxJ1mkkW4kP31ocXq+nsqkCw=-Mf7y-jw@mail.gmail.com 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" Xref: news.gmane.io gmane.emacs.bugs:186971 Archived-At: > I'm marking this bug as unreproducible for now. Please report back > if you see this again or can provide any more information. I just bumped into this bug on 27.1 with the same symptoms - typing lag after activating flyspell-mode. I took a couple of profiles - the first when lag was apparent and another after clearing the lag by toggling flyspell-mode. Both profiles show a similar result, so the "high cpu" in sit-for might be a red-herring. Profile 1 - with lag - flyspell-post-command-hook 1146 92% - flyspell-check-word-p 1120 90% - sit-for 1117 90% - redisplay 551 44% + redisplay_internal (C function) 1 0% read-event 390 31% - flyspell-get-not-casechars 1 0% ispell-get-decoded-string 1 0% + flyspell-word 8 0% + flyspell-check-pre-word-p 3 0% + command-execute 65 5% + ... 22 1% + undo-auto--add-boundary 1 0% Profile 2 - without lag - flyspell-post-command-hook 3507 94% - flyspell-check-word-p 3432 92% - sit-for 3414 92% - redisplay 1660 44% + redisplay_internal (C function) 3 0% + read-event 1317 35% + ispell-get-otherchars 6 0% + flyspell-get-not-casechars 5 0% + flyspell-word 17 0% + flyspell-check-pre-word-p 13 0% + command-execute 93 2% + ... 87 2% + timer-event-handler 3 0% undo-auto--add-boundary 2 0% tooltip-hide 1 0% Nick