From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#21028: Performance regression in revision af1a69f4d17a482c359d98c00ef86fac835b5fac (Apr 2014). Date: Mon, 13 Mar 2017 15:04:24 -0400 Message-ID: <16f9db27-dd0f-ddaf-2f34-45b9fd4e69c6@live.com> References: <559F9FAF.8090708@live.com> <831sz0sfug.fsf@gnu.org> <83oa095eaw.fsf@gnu.org> <83lgvd581m.fsf@gnu.org> <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> 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 1489431919 24238 195.159.176.226 (13 Mar 2017 19:05:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Mar 2017 19:05:19 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 Cc: 21028@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 13 20:05:13 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 1cnVHL-0005JU-2e for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Mar 2017 20:05:11 +0100 Original-Received: from localhost ([::1]:53920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnVHP-0006Gr-GU for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Mar 2017 15:05:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnVHF-0006FY-LS for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2017 15:05:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnVHC-0005FW-DQ for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2017 15:05:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56085) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cnVHC-0005FP-9X for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2017 15:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cnVHB-00068d-Po for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2017 15:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Mar 2017 19:05: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.148943187723560 (code B ref 21028); Mon, 13 Mar 2017 19:05:01 +0000 Original-Received: (at 21028) by debbugs.gnu.org; 13 Mar 2017 19:04:37 +0000 Original-Received: from localhost ([127.0.0.1]:54284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnVGm-00067w-WC for submit@debbugs.gnu.org; Mon, 13 Mar 2017 15:04:37 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:57219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnVGk-00067i-NF for 21028@debbugs.gnu.org; Mon, 13 Mar 2017 15:04:35 -0400 Original-Received: from [18.189.6.43] ([18.189.6.43]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.168]) with ESMTPSA (Nemesis) id 0M4epZ-1c2HMV1fHZ-00yuov; Mon, 13 Mar 2017 20:04:26 +0100 In-Reply-To: <83y3w9ay6y.fsf@gnu.org> X-Provags-ID: V03:K0:QPcHNK8vFeAzSEFRBahZfuLZXYhnjAw9WlnFAunsoMZdAeLkGi1 HUnHGmYDTxHfopfSCtZFcgigOLTteYDin/hRDjAy0UkhIXTShM9OiAqu9roMv5cY+41UvT+ tXSRLLT6ggLALcKKU2kxUzyXvy9SN6eYTggzaDt2aa0NE09uDs0nCkQEWwLgQMNBAvScLuq E5EUz8pXggKpKGiiLLmQg== X-UI-Out-Filterresults: notjunk:1;V01:K0:9arPmKzvmWs=:Y4aRCZYotnP0/v7DH2qKWu xObTd5Hs2dASk5tOhriIEld9EgqSa0a7/G788xkBydRSqddvhobLk09ztmd7p6L6sBUZq/19S GpZnC686Vq/5zMAmFkh6a39tkl96iRzShOZ5EK5OfKDkBe+YlrMctoaZIl5A1z3SHQ8jE31jY w6yJu1TNCvF+XWy97c57o2PYG/5axEaBmJYRXF7HJX2p1ouolwy+CAQTG1+/pWTbfDPT5YV9k Yzgz/ZRecN4DcYEkDhhtCFbnLztXBWuh6ag2KLvlJCUL89rDtT8jhkP28SqPLoAWXsm+hcSMb bvbprlI2bHHkWN/QqFG1hYLODKtzXQ/UyBR9tYk5mzXKwKvJ45Vop/JRRls9deAXuef+VLzAY icbLmzs57qW9TVGaNrprRKZprQLUEUuEufZPlTP8kr6KEXZoPydnNe7BAIF0KuZuBvKf0nwg0 mUaDSsBKHvFJT9+UA35d1wfhAUSkRt64e8f8F4FAVtaa+ni8TUx3kaUhtf1Jlwe1RDLYXtNWs ZwJi1jEOJuh6I6dsJLbOu6sdoXtWzceH+qxtymQmPTHHMsN+Ij20JubInaOsFfBX/Cna2nfx3 QFYnCWh7ngdXn7VfLGOes3reV+oN0XeAzBDAOvhLSUs1EKwY+plmlF0I+HVGAMjBm5UnueJup scGyS/VMama/mHK2awOOyJnL/qw+BXmr3zEGKZAGTIq7CZTCy7rtkkCpb8pwQEHiGIfXn1CpO rYNmkgj+HnUD8Gci 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:130551 Archived-At: On 2017-03-13 13:22, Eli Zaretskii wrote: >> Cc: 21028@debbugs.gnu.org From: Clément Pit--Claudel >> Date: Mon, 13 Mar 2017 12:36:25 >> -0400 >> >> On 2017-03-13 11:46, Eli Zaretskii wrote: >>> I installed Fira Sans and Noto Sans, and changed your program to >>> insert more of these characters and actually display all the >>> characters it inserts (see below). >> >> Thanks, that's a much better repro than mine :) Here are my >> timings: >> >> # Stock 24.5 12:01:26 /build/emacs $ time 24.5/src/emacs -Q --eval >> "(progn (set-fontset-font \"fontset-startup\" 'unicode \"Noto >> Sans\" nil) (set-fontset-font \"fontset-startup\" 'unicode >> \"Symbola\" nil 'append) (dotimes (_ 5000) (insert (make-string 20 >> 8658) \"\n\")) (goto-char (point-min)) (sit-for 0) (condition-case >> nil (while t (scroll-up) (sit-for 0)) (error nil)) >> (run-with-idle-timer 0 nil #'kill-emacs))" real 1m1.862s user >> 0m18.644s sys 0m15.972s >> >> # Stock 25.1 $ time 25.1/src/emacs -Q --eval "(progn >> (set-fontset-font \"fontset-startup\" 'unicode \"Noto Sans\" nil) >> (set-fontset-font \"fontset-startup\" 'unicode \"Symbola\" nil >> 'append) (dotimes (_ 5000) (insert (make-string 20 8658) \"\n\")) >> (goto-char (point-min)) (sit-for 0) (condition-case nil (while t >> (scroll-up) (sit-for 0)) (error nil)) (run-with-idle-timer 0 nil >> #'kill-emacs))" real 1m4.705s user 0m18.296s sys 0m18.444s >> >> # Master with your patch $ time master/src/emacs -Q --eval "(progn >> (set-fontset-font \"fontset-startup\" 'unicode \"Noto Sans\" nil) >> (set-fontset-font \"fontset-startup\" 'unicode \"Symbola\" nil >> 'append) (dotimes (_ 5000) (insert (make-string 20 8658) \"\n\")) >> (goto-char (point-min)) (sit-for 0) (condition-case nil (while t >> (scroll-up) (sit-for 0)) (error nil)) (run-with-idle-timer 0 nil >> #'kill-emacs))" real 0m1.207s user 0m0.928s sys 0m0.028s > > I see nothing of the kind, as you saw. With the same fonts as you > use. So it's definitely not a problem with the fonts. Which is > strange, since the profiles you provided seem to indicate a > font-related problem. We know the exact commit that caused this regression, right? So how could the problem not be font-related, since reverting it fixes the problem? > So why not use Symbola (i.e. the default fontset setup)? Because I don't use Symbola proper, but a monospacified variant. In fact, I use XITS Math (monospacified) now, followed by Symbola as the fallback. And in any case, we're not just trying to fix my problem: I regularly get support requests about company-coq because people run into performance issues with Emacs and prettify-symbols-mode. > Symbola supports emoji in the default fontset, so neither Segoe UI > nort Symbola should be needed in your setup. Except I don't want the Emoji from Symbola — I want the ones from Segoe. And again, this isn't about fixing my setup (I've perfectly happy running my self-compiled fork for the last year-and-a-half). > As for Ubuntu Mono, isn't that the default monospaced font? Not on all my machines, no. > In short, are you sure you really need those customizations? You > may be creating your own problems. I'm sure: commit af1a69f4d17a482c359d98c00ef86fac835b5fac is creating my problems :) > The default fontset should already provide you with the fonts that > display all of these, including CJK. If you use the default, what > characters aren't displayed well enough, or at all? Depends on the machine: not well enough on some, not at all on other, depending on the installed set of fonts. > Is this the complete fontset setup you are using […] If it is, I will try to reproduce using this fontset. No, not exactly. The full thing is at https://github.com/cpitclaudel/.emacs.d/blob/master/init/fonts.el#L7, but the problem is reproducible in a clean install an a much simpler set up. What about the VM approach, or simply remote access on a VM that I could provide? I'm afraid that you'll waste your time reproducing my complex set-up, with no actual benefit. Do you want to reproduce the problem to debug it locally, or something else? If the former, it there nothing I could do to help? Would it help if I tried to find other people who can reproduce the problem on their machines by following my VM-based reproduction steps? Cheers, Clément.