unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: charles@aurox.ch (Charles A. Roelli)
To: Drew Adams <drew.adams@oracle.com>
Cc: 30539@debbugs.gnu.org
Subject: bug#30539: 26.0; `char-displayable-p' is much slower in Emacs 25 and 26
Date: Wed, 28 Feb 2018 20:21:44 +0100	[thread overview]
Message-ID: <m2d10oj4xj.fsf@aurox.ch> (raw)
In-Reply-To: <ec3497d7-9a7d-4be8-8712-19bb6bdd96e8@default> (message from Drew Adams on Tue, 20 Feb 2018 10:08:36 -0800 (PST))

> Date: Tue, 20 Feb 2018 10:08:36 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> 
> Sorry, the recipe I sent before was not good.  The initial
> alist of chars had already been purged of any chars that
> are not `char-displayable-p'.
> 
> Please try attached file `throw-mule-bug-2.el' instead.
> This time the alist of chars in variable `char-names'
> includes some chars that are not `char-displayable-p'.
> Evaluating `char-displayable-p' for those chars is, I
> think, where the bottleneck is.
> 
> Evaluate the code in `throw-mule-bug-2.el' and then check
> buffers *CPU Profiler Report* and *Memory Profiler Report*.
> 
> I've attached those reports as these files:
> 
> throw-mule-bug-cpu-report2-E24-Q - Emacs 24.5 from `emacs -Q'
> throw-mule-bug-mem-report2-E24-Q - Emacs 24.5 from `emacs -Q'
> throw-mule-bug-cpu-report2-E26-Q - Emacs 26P2 from `emacs -Q'
> throw-mule-bug-mem-report2-E26-Q - Emacs 26P2 from `emacs -Q'
> 
> You can see these reports by using `M-x profiler-find-profile'
> and entering the report file name at the prompt.
> 
> In Emacs 24.5 evaluating `(my-test)' takes only a few _seconds_.
> In Emacs 26 (Pretest 2) it takes about 13 _minutes_.
> 
> Emacs 25.3.1 has the same problem as Emacs 26.

FWIW, on macOS 10.6, evaluating (my-test) the first time takes
~4.7 seconds, then further runs take about 0.01 seconds.  Setting
inhibit-compacting-font-caches to `t' seems to have no effect on
evaluation time in either case.

But I have noticed that displaying files containing certain Unicode
characters can lock Emacs for a little while.  I wonder if that is
also some manifestation of this bug.  Do you also see a slow down when
you visit a file containing the characters in the `char-names'
variable you defined?  Or is the slowness limited to running them
through `char-displayable-p'?





  parent reply	other threads:[~2018-02-28 19:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-19 22:07 bug#30539: 26.0; `char-displayable-p' is much slower in Emacs 25 and 26 Drew Adams
2018-02-20 18:08 ` Drew Adams
2018-02-22 14:50   ` Drew Adams
2018-02-23  1:49     ` Noam Postavsky
2018-02-23  2:43       ` Drew Adams
2018-02-23  3:32         ` Noam Postavsky
2018-02-23  4:07           ` Drew Adams
2018-02-23  7:14             ` Eli Zaretskii
2020-06-27 21:34           ` Drew Adams
2020-11-18 15:35       ` Stefan Kangas
2020-11-18 17:21         ` Eli Zaretskii
2020-11-18 18:30           ` Stefan Kangas
2018-02-28 19:21   ` Charles A. Roelli [this message]
     [not found] <<8c79c39f-7abb-4591-a676-17fb46af5a8f@default>
     [not found] ` <<ec3497d7-9a7d-4be8-8712-19bb6bdd96e8@default>
     [not found]   ` <<m2d10oj4xj.fsf@aurox.ch>
2018-02-28 19:53     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2d10oj4xj.fsf@aurox.ch \
    --to=charles@aurox.ch \
    --cc=30539@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).