From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#24048: 25.0.95; syntax-ppss can be slow Date: Mon, 25 Jul 2016 15:08:11 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/related; boundary=001a114644cab416cc0538772744 X-Trace: ger.gmane.org 1469459374 12535 80.91.229.3 (25 Jul 2016 15:09:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2016 15:09:34 +0000 (UTC) To: Dmitry Gutov , 24048@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 25 17:09:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bRhVK-0005FV-Kn for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jul 2016 17:09:14 +0200 Original-Received: from localhost ([::1]:32886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRhVJ-0003HC-QC for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jul 2016 11:09:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRhVB-0003EY-6T for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 11:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRhV7-0001mU-Tv for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 11:09:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRhV7-0001mQ-Q2 for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 11:09:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bRhV7-0000bV-LN for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 11:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jul 2016 15:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24048 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24048-submit@debbugs.gnu.org id=B24048.14694593092274 (code B ref 24048); Mon, 25 Jul 2016 15:09:01 +0000 Original-Received: (at 24048) by debbugs.gnu.org; 25 Jul 2016 15:08:29 +0000 Original-Received: from localhost ([127.0.0.1]:37093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRhUb-0000ac-8Q for submit@debbugs.gnu.org; Mon, 25 Jul 2016 11:08:29 -0400 Original-Received: from mail-io0-f182.google.com ([209.85.223.182]:33305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRhUZ-0000aP-Kt for 24048@debbugs.gnu.org; Mon, 25 Jul 2016 11:08:28 -0400 Original-Received: by mail-io0-f182.google.com with SMTP id 38so164021506iol.0 for <24048@debbugs.gnu.org>; Mon, 25 Jul 2016 08:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=OOuoPrKbwnO4zfKsObM+dlUl7sNVMihMzd4Xn46bW8E=; b=qXVfbXm98pkcNDpWmBl5sj0ktNBTAK84aGM72FR3DNh6BLROtnfMULPp6hzOET16jK 8hyUo6cfEO9hykCE7vk6DQe5XvpAFo+VPXCwrNE19ZI9N8aIU5F3zjrRZ47pShxQpzRM +epfias1A6tGXX17HZHBLDBh7lCmCTp29kQmt0YBVF9XlRiI4ivZ0h7ThdE8aAQDRQbK m/2LgXJELNxVybFMV6AzV9kBS3CzWlKXPCtEOppkH8oeTffP7V1iWtjaccmgdJoqujTi wJXJD8EB/QgCesLEB53FYNRoevVcX77Od+RZLH5Y+Rvo1ONfHYafiv5QXAecQH9kbHbk FccQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=OOuoPrKbwnO4zfKsObM+dlUl7sNVMihMzd4Xn46bW8E=; b=Bqw9ytGXLuKynKluqjMIPJfOqPloyKz3ro+CMgvXK9L+wpO8vLk5J35ICTTmzaMr0K 6JeL9fHpl8aEV5t8smd49Cw3SmujRj5rfXla1/x4vpFPFEZjMAxIqxaX85VLS+sdcjJG RFAIhRxhdrdE3Z48EpTwYfjYIdFNquetoHB5XAll6qyZhfkHw8ZzYunvVIRvSOGNx6HP 9U2dct4pg9msTF7iQ4iyQfz1XyjSbq6xATHKOmro5ugpd04gj2Bq7Gewf9wDBY0xN97r 3xwEokqbgA5x+WT4M9m7J7fiJ0RlAfnsgS00mWA99bsWAu+37f3RgOSPTlSPe48PfF/e PY1A== X-Gm-Message-State: AEkoousVtt5wYss1WwTiu70hOoTxBd8G1nO2iQzAzRky7iSY7LrcW8wj4XVx++wPu6ucY7HuAXfsm1OnVPCyAQ== X-Received: by 10.107.175.27 with SMTP id y27mr22876521ioe.137.1469459301883; Mon, 25 Jul 2016 08:08:21 -0700 (PDT) In-Reply-To: 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:121518 Archived-At: --001a114644cab416cc0538772744 Content-Type: multipart/alternative; boundary=001a114644cab416c80538772743 --001a114644cab416c80538772743 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Jul 25, 2016 at 5:42 AM Dmitry Gutov wrote: > Is 5.6ms really significant? You should be typing like 200 characters > per _second_ to really notice the difference. > > Even 12ms that I'm getting at the bottom of your example file doesn't > sound like it should have effect on the perceptible latency. > That=E2=80=99s a totally fair question, but yes, I can feel the difference = while typing. Ever since switching to Emacs I could feel significant latency in my setup so I=E2=80=99ve been on a quest to bring it down. That quest led m= e to smartparens and first to that case-fold-search binding issue and now here. Even if one can=E2=80=99t feel 5.6ms, it becomes another brick in the bag, = i.e. if another minor mode did something similar and added another 5.6ms. With enough of them most people could probably feel it. If you haven=E2=80=99t read it, I recommend looking over https://pavelfatin.com/typing-with-pleasure/ He has a tool on there for measuring typing latency. Here is a histogram of the difference between typing at the bottom of the sample file, the top, and the bottom with memoizing syntax-ppss in smartparens: [image: Bottom VS Top VS Memoize Bottom.png] --=20 Aaron --001a114644cab416c80538772743 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mon, Jul 25, 2016 at 5:4= 2 AM Dmitry Gutov <dgutov@yandex.ru<= /a>> wrote:
--
Aaron
--001a114644cab416c80538772743-- --001a114644cab416cc0538772744 Content-Type: image/png; name="Bottom VS Top VS Memoize Bottom.png" Content-Disposition: inline; filename="Bottom VS Top VS Memoize Bottom.png" Content-Transfer-Encoding: base64 Content-ID: <1562297dbb9eb29b1d61> X-Attachment-Id: 1562297dbb9eb29b1d61 iVBORw0KGgoAAAANSUhEUgAAAcIAAAESCAIAAADhREI9AAAMMElEQVR42u3dUZLbthJAUa3PC0vN frxA5sMfiUwRbAANECLPrdSr1DgWRUo6AjV67NcmSero5RBIEkYlCaO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