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#21028: Performance regression in revision af1a69f4d17a482c359d98c00ef86fac835b5fac (Apr 2014). Date: Fri, 17 Mar 2017 10:15:33 +0200 Message-ID: <83shmcz5cq.fsf@gnu.org> References: <559F9FAF.8090708@live.com> <83a8br6hq0.fsf@gnu.org> <672a0c69-4352-735f-cba4-025e642626ea@gmail.com> <83vauf50wb.fsf@gnu.org> <7408d59c-92ba-b879-5ac1-3cd5eee9b4db@gmail.com> <83tw9z4zzp.fsf@gnu.org> <2cad0da9-c931-b547-07bb-efec2f2bcf1f@gmail.com> <83h95w0w3p.fsf@gnu.org> <27853273-e6d8-077e-b9e0-b2bec2fe1fae@gmail.com> <834m1v2630.fsf@gnu.org> <1c224dc1-bd71-a910-b7cf-00313e4aec40@live.com> <83efy2cx5n.fsf@gnu.org> <3c3e8384-3412-f5a5-3ab2-a7eb4e699f1c@live.com> <83d1dmcrnl.fsf@gnu.org> <39fe847e-ef8a-149f-4478-d02e7c794c9a@live.com> <837f3tch7y.fsf@gnu.org> <1e7bc066-3f29-3897-5039-de7233efc58a@live.com> <83y3w9ay6y.fsf@gnu.org> <16f9db27-dd0f-ddaf-2f34-45b9fd4e69c6@live.com> <83k27rc15x.fsf@gnu.org> <79f4e3ce-6284-8fc5-fd8f-9f0c9cebe873@live.com> <831styblhv.fsf@gnu.org> <83ziglz1gy.fsf@gnu.org> <2b7b1b16-4be4-a3cc-7e92-3f16379ab2aa@live.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1489738639 848 195.159.176.226 (17 Mar 2017 08:17:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Mar 2017 08:17:19 +0000 (UTC) Cc: 21028@debbugs.gnu.org To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 17 09:17:10 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 1con4Q-0007TZ-5c for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Mar 2017 09:17:10 +0100 Original-Received: from localhost ([::1]:47635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1con4S-0007hY-OQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Mar 2017 04:17:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1con4M-0007hM-KU for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 04:17:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1con4I-000113-1x for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 04:17:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33125) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1con4H-00010z-UY for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 04:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1con4H-0005br-NS for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 04:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Mar 2017 08:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21028 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21028-submit@debbugs.gnu.org id=B21028.148973857121426 (code B ref 21028); Fri, 17 Mar 2017 08:17:01 +0000 Original-Received: (at 21028) by debbugs.gnu.org; 17 Mar 2017 08:16:11 +0000 Original-Received: from localhost ([127.0.0.1]:59557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1con3T-0005ZW-0R for submit@debbugs.gnu.org; Fri, 17 Mar 2017 04:16:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1con3Q-0005ZB-Bt for 21028@debbugs.gnu.org; Fri, 17 Mar 2017 04:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1con3G-0000kc-F3 for 21028@debbugs.gnu.org; Fri, 17 Mar 2017 04:16:03 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1con3G-0000kW-6m; Fri, 17 Mar 2017 04:15:58 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3334 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1con3F-0004Js-Dx; Fri, 17 Mar 2017 04:15:57 -0400 In-reply-to: <2b7b1b16-4be4-a3cc-7e92-3f16379ab2aa@live.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel on Thu, 16 Mar 2017 17:23:13 -0400) 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:130664 Archived-At: > Cc: 21028@debbugs.gnu.org > From: Clément Pit--Claudel > Date: Thu, 16 Mar 2017 17:23:13 -0400 > > >> In these fast example I'm still adding Symbola with 'unicode — but > >> adding Ubuntu Mono with 'latin. > > > > Ubuntu Mono _is_ the problem. Symbola has very good coverage of > > almost all Unicode blocks, so it is not the problem. > > Ok, I think I understand better now. But I'm still confused: why would the following be slow, then? > > 25.1/src/emacs -Q --eval "(set-fontset-font \"fontset-default\" 'unicode (font-spec :name \"Symbola\") nil 'prepend)" > > To clarify: it isn't slow with the example of plenty of ⇒ characters, but it's still slow if I use a more diverse set of symbols or letters, like e.g. > > ⍺⍶ᷧΑΆἉἍᾍἏᾏᾉἋᾋᾹΆᾼἈἌᾌἎᾎᾈἊᾊΆᾺᾸαάἁἅᾅἇᾇἃᾃᾁᾱάᾴᾶᾷἀἄᾄἆᾆἂᾂᾀάὰᾲᾰᾳⱭⱰɑᶐꬰꭤɒ𝚨𝜜𝜶𝛂𝛢𝛼𝝖𝞐𝞪𝝰ᵅᶛ If you show a concrete test case, I could look into it when I have time. > > What happens if you don't do this? Which font is used for math > > symbols? Or are the problems with symbols other than math symbols? > > IOW, I don't understand fully why you need to set up XITS Math in the > > fontset, what is missing/incorrect/ugly if you don't? > > I think this is due to my not explaining it properly, or trying to hard to make minimal examples. In can answer separately for myself and for the other user configurations I've looked at. > > For myself, it's a matter of monospace fonts: that is, I want all characters to occupy the same width, so I don't use Symbola: instead, I use a version of XITS Math edited with FontForge to have equal widths for all characters. So you could instead edit Symbola to have a fixed width, and then you wouldn't need to touch the default fontset, is that right? > I also prefer as many characters to be displayed by the same font. That already works in Emacs 25, unless I misunderstand what you mean. The default font is used for all the characters it supports. For fallback fonts, those from fontset-default, you need to set up their supported scripts for your liking, based on what they support and on whether or not you like the glyphs they produce for each script they support. Using 'unicode' is only recommended for a few fonts whose coverage is really almost universal. > For other users, we had cases were Emacs displayed an empty rectangle until we added an explicit set-fontset-font with Symbola. This should be fixed in Emacs 25 out of the box, AFAIU.