From: Eli Zaretskii <eliz@gnu.org>
To: Gennady Uraltsev <gennady.uraltsev@gmail.com>
Cc: 26402@debbugs.gnu.org
Subject: bug#26402: 25.2; Font rendering extremely slow on any non-default font
Date: Sun, 09 Apr 2017 14:59:16 +0300 [thread overview]
Message-ID: <83tw5xlrl7.fsf@gnu.org> (raw)
In-Reply-To: <b093c976-7031-494a-1602-b7716f1bf9aa@gmail.com> (message from Gennady Uraltsev on Sun, 9 Apr 2017 13:07:03 +0200)
> From: Gennady Uraltsev <gennady.uraltsev@gmail.com>
> Cc: 26402@debbugs.gnu.org
> Date: Sun, 9 Apr 2017 13:07:03 +0200
>
> 1) I must admit that I am not very familiar with GDB. I have done some
> programming so I am familiar with the basic concepts but not the tool.
> If you give me an outline of what to do I can try to do it (I do not
> mean step by step instructions, I guess I can figure something out and
> if I really can't I could ask for clarifications).
Thanks.
The function we are interested in is font-info, or Ffont_info on the C
level. Its code is in the file font.c around line 5100. It calls
various other functions, like fs_query_fontset and font_open_by_name.
I'd like to know which one of them takes most of the time, then drill
down into that function and find out which of its subroutines takes
most of the time, etc. One way of doing that is step through the code
and find the line whose execution takes a perceptible time.
Alternatively, you could use the 'perf' utility available on GNU/Linux
systems, to profile the code of Ffont_info and its subroutines and
find out which one takes most of the time.
> I see that on kubuntu 16.10 with emacs 24.5.1 and with emacs25.1.2 the
> problem does not appear: everything works smoothly.
Maybe the fonts available on those systems are different?
> 3) Just a question: is there a way to ask emacs to dump the info about
> the versions of all the libraries it uses?
Yes, the 'ldd' command is your friend.
next prev parent reply other threads:[~2017-04-09 11:59 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83tw5xlrl7.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=26402@debbugs.gnu.org \
--cc=gennady.uraltsev@gmail.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 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.