From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#38104: 27.0.50; elixir-mode fontification is very slow Date: Tue, 26 Nov 2019 18:26:13 +0200 Message-ID: <2ec58f9d-b979-7ad1-d53f-4cc454e50395@yandex.ru> References: <3b0bfb66-437d-3606-dc06-05957f01b516@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="48068"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= To: 38104@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 26 17:28:51 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZdhp-000CMd-Vl for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2019 17:28:50 +0100 Original-Received: from localhost ([::1]:56864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZdho-0006NZ-TT for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2019 11:28:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36683) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZdg8-0004ab-P9 for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 11:27:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZdg6-00058e-Qy for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 11:27:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46830) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZdg6-00058P-6k for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 11:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZdg6-0004H0-1a for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 11:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2019 16:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38104 X-GNU-PR-Package: emacs Original-Received: via spool by 38104-submit@debbugs.gnu.org id=B38104.157478558516371 (code B ref 38104); Tue, 26 Nov 2019 16:27:01 +0000 Original-Received: (at 38104) by debbugs.gnu.org; 26 Nov 2019 16:26:25 +0000 Original-Received: from localhost ([127.0.0.1]:52800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZdfV-0004Fz-3w for submit@debbugs.gnu.org; Tue, 26 Nov 2019 11:26:25 -0500 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]:52261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZdfT-0004Fn-N8 for 38104@debbugs.gnu.org; Tue, 26 Nov 2019 11:26:24 -0500 Original-Received: by mail-wm1-f43.google.com with SMTP id l1so3884124wme.2 for <38104@debbugs.gnu.org>; Tue, 26 Nov 2019 08:26:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KdewH+OF8y/XccWn1cQle3Afr8LbntfcAgKdk1XzGT8=; b=epPT5MJpyu0NLzk7sxCmXx/EVpBUkDMPpdx/0Om7+h0CvESeAj4WQTkNOz6BftsXAc WFAN/LAXt7PFjobupXDWz2+MvaUXYCUyyC3xIDLq1MCmFi7qoqt8q6vzVEzdandg1TOb d3zsBWttUDoPDWPmq8h9yDv7ams5Sy9aTPQbN7ie13V5ixFVKxNLZY/IGIbtV5lpMqNw Ni0OeHStDuXHh70lVzCa+UI0Bb5tQ33DEw7xb4bcu7dfJiRh6R8RnVHuVg9G4O15OJdF 4Dj99Y9Q4grucEDOzvr9WYePrBCuhpUFrs1uSIBa6Ejk9YWgzd9oaGcuJsgDFiOgfDB7 UjrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:references:cc:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KdewH+OF8y/XccWn1cQle3Afr8LbntfcAgKdk1XzGT8=; b=aYmOCsy1pKhSDWYlojl0ELWaSRnw0bYoMn1M4ECT82zdNd7GFvCVEAWjV4Fd7mhKE8 wS/zIwTpE2wrXcKIi0HTqG3qrNdZ1vC9r3dB1w9hXwYkvgqNpjA+6q+vT44KBpfKtgca qGALsO9uh4GGXmq8J+Kf7+d2zmhffqRlZOJ7pzwEOaG361lDbs6REVPDcXQpsvuFmr+d aUDdHRvNJIrO2siDmX5LKWJ5OWsCnlQPcIMt8/4CfSlK3E6Ga1JHibDqXqWS5lDj6Xg4 jo5my8w57uUuTqLXdzJvhBw5DBsHyA8xETyzwWjwdoUUMOiqI3pgQT51c+JfbslLsT5O xlRg== X-Gm-Message-State: APjAAAXdpux+wPsx745UAcfPxtHNEbhaCIj6QcIHFFXpMLkJT21MRWUD UqJj8EzGOrBIlCqAP6li1b8= X-Google-Smtp-Source: APXvYqyiZGzDT1Kkxub52GL6LhHtxaXz202RFyKVadfKy8p8lqfkrR7TYx1dEos7G4J9cV6Kzm/4ww== X-Received: by 2002:a05:600c:228c:: with SMTP id 12mr5359148wmf.154.1574785577754; Tue, 26 Nov 2019 08:26:17 -0800 (PST) Original-Received: from [192.168.0.149] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id w4sm15429457wrs.1.2019.11.26.08.26.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Nov 2019 08:26:16 -0800 (PST) In-Reply-To: <3b0bfb66-437d-3606-dc06-05957f01b516@yandex.ru> Content-Language: en-US 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: 209.51.188.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:172447 Archived-At: I did a 'git bisect', and it came down to: commit 2ed71227c626c6cfdc684948644ccf3d9eaeb15b Author: Mattias Engdegård Date: Wed Sep 25 14:29:50 2019 -0700 New rx implementation Mattias, could you look into it? elixir-mode does use rx, heavily. Albeit with a thin wrapper. To be clear, elixir-mode is quite unusable now. On 07.11.2019 17:40, Dmitry Gutov wrote: > I haven't been able to track this to a particular component (e.g. a > regexp) for now, but font-lock-fontify-region is now considerably slower > than it was in Emacs 26 (at least at revision cb8fb597e5bf4f14). > > To reproduce: install elixir-mode (e.g. from MELPA Stable): > > (add-to-list 'package-archives >              '("melpa-stable" . "https://stable.melpa.org/packages/") t) > > M-x list-packages, install elixir-mode. > > Savet the attached tiny.__ex__ as tiny.ex. > > Visit tiny.ex. > > Eval: (benchmark 1 '(font-lock-fontify-region (point-min) (point-max))). > > "Elapsed time: 0.158824s" > > With larger files, the times are much longer. > > I had a break from Elixir, so I noticed this only now. > > In GNU Emacs 27.0.50 (build 11, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) >  of 2019-11-05 built on potemkin > Repository revision: dd19cc3aa16ccc441a8a2bfcdeb3005a6eef2543 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 > System Description: Ubuntu 19.04