all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#38104: 27.0.50; elixir-mode fontification is very slow
@ 2019-11-07 15:40 Dmitry Gutov
  2019-11-26 16:26 ` Dmitry Gutov
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Gutov @ 2019-11-07 15:40 UTC (permalink / raw)
  To: 38104

[-- Attachment #1: Type: text/plain, Size: 983 bytes --]

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

[-- Attachment #2: tiny.__ex__ --]
[-- Type: text/plain, Size: 162 bytes --]

# module_name.ex
defmodule ModuleName do
  def message({to, %IncidentMessage{title: _t, body: msg}}) do
    msg
    |> message_body
    |> send_message
  end
end

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-27 21:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-07 15:40 bug#38104: 27.0.50; elixir-mode fontification is very slow Dmitry Gutov
2019-11-26 16:26 ` Dmitry Gutov
2019-11-26 16:30   ` Dmitry Gutov
2019-11-26 16:59   ` Mattias Engdegård
2019-11-26 17:03     ` Dmitry Gutov
2019-11-26 19:32   ` Mattias Engdegård
2019-11-27 21:58     ` Dmitry Gutov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.