GNU bug report logs - #30539
26.0; `char-displayable-p' is much slower in Emacs 25 and 26

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Mon, 19 Feb 2018 22:09:02 UTC

Severity: minor

Found in version 26.0

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: "Charles A. Roelli" <charles <at> aurox.ch>, Drew Adams <drew.adams <at> oracle.com>
Cc: 30539 <at> debbugs.gnu.org
Subject: bug#30539: 26.0; `char-displayable-p' is much slower in Emacs 25 and 26
Date: Wed, 28 Feb 2018 11:53:49 -0800 (PST)
> 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'?

If `inhibit-compacting-font-caches is `t' then there is no
slowdown in `char-displayable-p'.  The slowdown is for chars
that are not displayable, it seems.

If such chars are inserted in a buffer where they are not
displayable (which happens in my case) then they appear
as rectangles enclosing the char code.  There is no slowdown
displaying that - the chars themselves are not displayed.

(I was using `char-displayable-p' to optionally exclude
such chars from a list of chars and their descriptions.)




This bug report was last modified 4 years and 180 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.