unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gennady Uraltsev <gennady.uraltsev@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 26402@debbugs.gnu.org
Subject: bug#26402: 25.2; Font rendering extremely slow on any non-default font
Date: Sat, 8 Apr 2017 16:54:54 +0200	[thread overview]
Message-ID: <04e03d3a-62f1-82f2-b7a8-9e36cf5e826b@gmail.com> (raw)
In-Reply-To: <83inmfm00v.fsf@gnu.org>

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

Hey,

Nope, sorry. Doesn't seem to help.  What I did:
started emacs with

#emacs -Q lorem-ipsum

emacs opens in fundamental mode with the file (attached)

# M-x eval-expression
# (setq inhibit-compacting-font-caches t)
# buffer-face-set
# variable-pitch

Slow as before. Attaching the profiler logs


On 08/04/17 16:44, Eli Zaretskii wrote:
> > From: Gennady Uraltsev <gennady.uraltsev@gmail.com>
> > Date: Sat, 8 Apr 2017 15:48:38 +0200
> >
> > Font rendering in emacs is incredibly slow if any buffer-local change is
> > made i.e. unless using 'default.
>
> Does setting inhibit-compacting-font-caches non-nil solve the problem?
> If it does, can you show an example of a buffer where you see this
> problem?
>


[-- Attachment #2: BAD-inhibit-cache-buffer-set-face-profile --]
[-- Type: text/plain, Size: 2591 bytes --]


[profiler-profile "24.3" cpu #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8 data ([redisplay sit-for execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 8 [default-font-height default-line-height line-move-partial line-move next-line funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil] 804 [default-font-height default-line-height window-screen-lines line-move-partial line-move next-line funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil] 750 [default-font-height default-line-height line-move next-line funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil] 670 [default-line-height line-move next-line funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 4 [default-line-height window-screen-lines line-move-partial line-move next-line funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil] 4 [line-move-visual line-move next-line funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 4 [completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 29 [image-search-load-path find-image eval "#<compiled 0x280363>" mapcar tool-bar-make-keymap-1 tool-bar-make-keymap redisplay_internal\ \(C\ function\) read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil] 4 [read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil nil nil nil nil] 23 [complete-with-action "#<compiled 0x24c47d>" try-completion completion-basic-try-completion "#<compiled 0x4abe53>" completion--some completion--nth-completion completion-try-completion completion--do-completion completion--in-region-1 "#<compiled 0x249589>" apply "#<compiled 0x5cdc62b>" completion--in-region completion-in-region minibuffer-complete] 3 [execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil nil] 5 [profiler-cpu-profile profiler-report-cpu profiler-report funcall-interactively call-interactively command-execute execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil] 8 [Automatic\ GC] 5)) (22760 63749 353013 10000) nil]

[-- Attachment #3: BAD-inhibit-cache-buffer-set-face --]
[-- Type: text/plain, Size: 2925 bytes --]

- command-execute                                                2313  99%
 - call-interactively                                            2313  99%
  - funcall-interactively                                        2257  97%
   - next-line                                                   2236  96%
    - line-move                                                  2236  96%
     - line-move-partial                                         1558  67%
      - default-line-height                                       804  34%
         default-font-height                                      804  34%
      - window-screen-lines                                       754  32%
       - default-line-height                                      754  32%
          default-font-height                                     750  32%
     - default-line-height                                        674  29%
        default-font-height                                       670  28%
       line-move-visual                                             4   0%
   - execute-extended-command                                      21   0%
    - sit-for                                                       8   0%
       redisplay                                                    8   0%
    - command-execute                                               8   0%
     - call-interactively                                           8   0%
      - funcall-interactively                                       8   0%
       - profiler-report                                            8   0%
        - profiler-report-cpu                                       8   0%
           profiler-cpu-profile                                     8   0%
  - byte-code                                                      56   2%
   - read-extended-command                                         56   2%
    - completing-read                                              56   2%
     - completing-read-default                                     56   2%
      - read-from-minibuffer                                       27   1%
       - redisplay_internal (C function)                            4   0%
        - tool-bar-make-keymap                                      4   0%
         - tool-bar-make-keymap-1                                   4   0%
          - mapcar                                                  4   0%
           + #<compiled 0x280363>                                   4   0%
- ...                                                               8   0%
   Automatic GC                                                     5   0%
 - minibuffer-complete                                              3   0%
  - completion-in-region                                            3   0%
   - completion--in-region                                          3   0%
    + #<compiled 0x5cdc62b>                                         3   0%

[-- Attachment #4: lore-ipsum --]
[-- Type: text/plain, Size: 1151 bytes --]

Aliquam erat volutpat.  Nunc eleifend leo vitae magna.  In id erat non
orci commodo lobortis.  Proin neque massa, cursus ut, gravida ut,
lobortis eget, lacus.  Sed diam.  Praesent fermentum tempor tellus.
Nullam tempus.  Mauris ac felis vel velit tristique imperdiet.  Donec
at pede.  Etiam vel neque nec dui dignissim bibendum.  Vivamus id
enim.  Phasellus neque orci, porta a, aliquet quis, semper a, massa.
Phasellus purus.  Pellentesque tristique imperdiet tortor.  Nam
euismod tellus id erat.

Aliquam erat volutpat.  Nunc eleifend leo vitae magna.  In id erat non
orci commodo lobortis.  Proin neque massa, cursus ut, gravida ut,
lobortis eget, lacus.  Sed diam.  Praesent fermentum tempor tellus.
Nullam tempus.  Mauris ac felis vel velit tristique imperdiet.  Donec
at pede.  Etiam vel neque nec dui dignissim bibendum.  Vivamus id
enim.  Phasellus neque orci, porta a, aliquet quis, semper a, massa.
Phasellus purus.  Pellentesque tristique imperdiet tortor.  Nam
euismod tellus id erat.

Nulla posuere.  Nunc eleifend leo vitae magna.  Nunc aliquet, augue
nec adipiscing interdum, lacus tellus malesuada massa, quis varius mi
purus non odio.

  reply	other threads:[~2017-04-08 14:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-08 13:48 bug#26402: 25.2; Font rendering extremely slow on any non-default font Gennady Uraltsev
2017-04-08 14:44 ` Eli Zaretskii
2017-04-08 14:54   ` Gennady Uraltsev [this message]
2017-04-08 16:10     ` Eli Zaretskii
     [not found]       ` <541302bf-540b-aedb-4ca4-2ba3acfe495e@gmail.com>
2017-04-08 17:18         ` Eli Zaretskii
2017-04-08 22:33           ` Gennady Uraltsev
2017-04-09  5:44             ` Eli Zaretskii
2017-04-09  9:45               ` Eli Zaretskii
2017-04-09 11:07                 ` Gennady Uraltsev
2017-04-09 11:59                   ` Eli Zaretskii
2019-11-17  7:47                     ` Lars Ingebrigtsen

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=04e03d3a-62f1-82f2-b7a8-9e36cf5e826b@gmail.com \
    --to=gennady.uraltsev@gmail.com \
    --cc=26402@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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).