From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#26402: 25.2; Font rendering extremely slow on any non-default font Date: Sun, 09 Apr 2017 14:59:16 +0300 Message-ID: <83tw5xlrl7.fsf@gnu.org> References: <588df69e-068d-e2c5-3c2f-3ca238313aa9@gmail.com> <83inmfm00v.fsf@gnu.org> <04e03d3a-62f1-82f2-b7a8-9e36cf5e826b@gmail.com> <83h91ynam6.fsf@gnu.org> <541302bf-540b-aedb-4ca4-2ba3acfe495e@gmail.com> <83bms6n7hk.fsf@gnu.org> <2a3d3577-ccbf-c30f-15ab-390cd1cd5278@gmail.com> <834lxym8x4.fsf@gnu.org> <83wpatlxrh.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1491739234 12452 195.159.176.226 (9 Apr 2017 12:00:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Apr 2017 12:00:34 +0000 (UTC) Cc: 26402@debbugs.gnu.org To: Gennady Uraltsev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 09 14:00:28 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxBW6-0002RS-H5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Apr 2017 14:00:27 +0200 Original-Received: from localhost ([::1]:58309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxBWC-0001dY-II for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Apr 2017 08:00:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxBVn-0001Kg-Gh for bug-gnu-emacs@gnu.org; Sun, 09 Apr 2017 08:00:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxBVk-0003Ka-F7 for bug-gnu-emacs@gnu.org; Sun, 09 Apr 2017 08:00:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxBVk-0003Jk-BO for bug-gnu-emacs@gnu.org; Sun, 09 Apr 2017 08:00:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cxBVk-0002bQ-3T for bug-gnu-emacs@gnu.org; Sun, 09 Apr 2017 08:00:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Apr 2017 12:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26402 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26402-submit@debbugs.gnu.org id=B26402.14917391549882 (code B ref 26402); Sun, 09 Apr 2017 12:00:03 +0000 Original-Received: (at 26402) by debbugs.gnu.org; 9 Apr 2017 11:59:14 +0000 Original-Received: from localhost ([127.0.0.1]:39010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxBUw-0002ZK-Gb for submit@debbugs.gnu.org; Sun, 09 Apr 2017 07:59:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxBUu-0002Z7-MQ for 26402@debbugs.gnu.org; Sun, 09 Apr 2017 07:59:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxBUm-0001ze-Cg for 26402@debbugs.gnu.org; Sun, 09 Apr 2017 07:59:07 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxBUm-0001zW-9f; Sun, 09 Apr 2017 07:59:04 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3802 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cxBUl-0000HY-Jt; Sun, 09 Apr 2017 07:59:04 -0400 In-reply-to: (message from Gennady Uraltsev on Sun, 9 Apr 2017 13:07:03 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131407 Archived-At: > From: Gennady Uraltsev > 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.