From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Newsgroups: gmane.emacs.bugs Subject: bug#26525: `sit-for' in Flyspell slows typing down, hogs 90% of CPU Date: Sat, 15 Apr 2017 16:33:56 -0400 Message-ID: <5fd6562f-6190-5c3c-34c1-24370e9937be@gmail.com> References: <48f694f6-7540-a57b-eb82-3fe5024d9554@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1492288511 30579 195.159.176.226 (15 Apr 2017 20:35:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Apr 2017 20:35:11 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: 26525@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 15 22:35:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1czUPQ-0007ni-VF for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Apr 2017 22:35:05 +0200 Original-Received: from localhost ([::1]:58012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czUPW-0004sp-Oj for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Apr 2017 16:35:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czUPR-0004sS-4i for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2017 16:35:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czUPO-0003VS-1M for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2017 16:35:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51237) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1czUPN-0003Ud-Up for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2017 16:35:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1czUPN-0007bO-Ot for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2017 16:35:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <48f694f6-7540-a57b-eb82-3fe5024d9554@gmail.com> Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Apr 2017 20:35:01 +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: Original-Received: via spool by 26525-submit@debbugs.gnu.org id=B26525.149228844429153 (code B ref 26525); Sat, 15 Apr 2017 20:35:01 +0000 Original-Received: (at 26525) by debbugs.gnu.org; 15 Apr 2017 20:34:04 +0000 Original-Received: from localhost ([127.0.0.1]:49435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1czUOS-0007a9-DR for submit@debbugs.gnu.org; Sat, 15 Apr 2017 16:34:04 -0400 Original-Received: from mail-qt0-f170.google.com ([209.85.216.170]:34514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1czUOQ-0007ZY-O1 for 26525@debbugs.gnu.org; Sat, 15 Apr 2017 16:34:03 -0400 Original-Received: by mail-qt0-f170.google.com with SMTP id c45so81514208qtb.1 for <26525@debbugs.gnu.org>; Sat, 15 Apr 2017 13:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=3mfEbh05G6tsQUYVi/SmDb+GFAN6FFPRUkzd86wc6Is=; b=mVbbyQc87a5ChaNmKHI3MGr8jE0Z5JuPU3PLwE4Ehy5mGWXBvNz36ZSLYTu3FCFJ3q 3leoktZajb/SNj4TcD++izdH1K1H/u2ANppBDATEeWJlw0ln0gRuv0vMo/xr/rbr5gW8 qOHFPFVKVM78rnVog7jRfQk+B+T2Dlyojdb3iCnXPYn57+rhhRsaAq4zL79vzmDqWdTX zZFfgPf4ygAtFM0M1NxgFCSWKoPFg04bjeDVVDjeJC2/fT1GvhwDlztqi/jH5Ayf9g15 Baf2slRubaz9QsPsv3EKx1IByHd8n/YurF6aJMpYMd/tIGUq3r13Ta6wyZNdmmjZEwdB pTRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=3mfEbh05G6tsQUYVi/SmDb+GFAN6FFPRUkzd86wc6Is=; b=XeHhgoMS3m5Fb6CC9MsDE8y45yYr8NjG6nL9N1Zpe7a316m/PqwGxdXx6veoGPdo58 ffmKePcTSG3HwYaKzRTGacYjOy4TTmpqMBzamruM1EZTxqOHNl9g+CbGPPnRrkwxlC97 i8OyphA9FjLUHipE7oJW6y06jtwO8Rq5dJ2sMffF8P6p/+8JNjUwVpehC/63Ba2dCzOV YfAPiJ/r4PiLz2mAlzA6/vlRfp8nKSNgAC87jEfk4aVW/oqsP5uMq4E0BR+HdVewdhPb ljFaVubjz/xC4RFDzPulhAreD15g/MsUKzvfoYBu+FELjC/YrusQToRZm+g6QpC+RuLq rIVg== X-Gm-Message-State: AN3rC/5IIf7mVifbQr1uyaWK3m64L9i9lu1j2f2tkQARz51gW9u8aF2O EvimMqukXqOUHhkBmJ8= X-Received: by 10.237.49.36 with SMTP id 33mr3112548qtg.41.1492288437232; Sat, 15 Apr 2017 13:33:57 -0700 (PDT) Original-Received: from [18.189.26.125] (dhcp-18-189-26-125.dyn.mit.edu. [18.189.26.125]) by smtp.gmail.com with ESMTPSA id 127sm3762896qkf.64.2017.04.15.13.33.56 for <26525@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Apr 2017 13:33:56 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131627 Archived-At: The relevant piece of code seems to be this: (cond ((get this-command 'flyspell-deplacement) (not (eq flyspell-previous-command this-command))) ((get this-command 'flyspell-delayed) ;; The current command is not delayed, that ;; is that we must check the word now. (and (not unread-command-events) (sit-for flyspell-delay))) (t t))) But the condition and the comment seem at odds, and it doesn't say much about why it calls `sit-for`. Clément.