From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Split `simple.el'? Date: Fri, 06 Apr 2018 14:18:10 -0400 Message-ID: References: <5f1e960c-483f-4902-b4c2-b7a4ca3b04f4@default> <87sh89fsxl.fsf@Rainer.invalid> <87o9iw3lak.fsf@linux-m68k.org> <83lge021r1.fsf@gnu.org> <83efjs1nnc.fsf@gnu.org> <83bmew1mu5.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523038629 11091 195.159.176.226 (6 Apr 2018 18:17:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2018 18:17:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 06 20:17:04 2018 Return-path: Envelope-to: ged-emacs-devel@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 1f4Vv4-0002lj-Oh for ged-emacs-devel@m.gmane.org; Fri, 06 Apr 2018 20:17:02 +0200 Original-Received: from localhost ([::1]:45262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4VxA-0002ZS-9B for ged-emacs-devel@m.gmane.org; Fri, 06 Apr 2018 14:19:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4VwF-0002Yp-FL for emacs-devel@gnu.org; Fri, 06 Apr 2018 14:18:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4VwC-0007MW-Ag for emacs-devel@gnu.org; Fri, 06 Apr 2018 14:18:15 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:51891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4VwC-0007Lt-13; Fri, 06 Apr 2018 14:18:12 -0400 Original-Received: from lechazo.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w36IIAFW027677; Fri, 6 Apr 2018 14:18:10 -0400 Original-Received: by lechazo.home (Postfix, from userid 20848) id 21E02602E5; Fri, 6 Apr 2018 14:18:10 -0400 (EDT) In-Reply-To: <83bmew1mu5.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 06 Apr 2018 16:33:22 +0300") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6259=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6259> : inlines <6552> : streams <1783386> : uri <2621565> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224409 Archived-At: > Actually, this might be more fair: > M-: (length (x-list-fonts "-*-*-normal-*-*-*-13-*-*-*-*-*-iso10646-1")) RET > where the "13" part could need a change, if (face-font 'default) > reports a different pixel-width of the default font on your system. OK, I just tried it on my office's 2006 mac-mini (Core 2 Duo T7600) where the above says it has 437 fonts installed (removing the iso10646 constraint brings it up to 614): % time src/emacs -Q --geometry +10+10 -f view-hello-file --eval '(progn (redisplay t) (sleep-for 2) (kill-emacs))' src/emacs -Q --geometry +10+10 -f view-hello-file --eval 0.95s user 0.17s system 32% cpu 3.480 total % time src/emacs -Q --geometry +10+10 --eval '(progn (redisplay t) (sleep-for 2) (kill-emacs))' src/emacs -Q --geometry +10+10 --eval 0.46s user 0.05s system 19% cpu 2.661 total % [ I just used a "sleep-for 2" so I could visually confirm that everything is indeed displayed. ] So a "normal" start takes ~0.7s and visiting the hello file brings it to ~1.5s hence adding less than a second. Just for laughs, I tried it on my 2003-vintage Thinkpad X30 (Pentium III @ 1.2GHz): the time goes from 1.9s to 5.2s, i.e. visiting the hello file adds a bit more than 3s (and the above x-list-fonts says 462 on this system). Definitely not instantaneous but very tolerable. I expect 500 fonts is not considered large, since I'm not particularly interested in typography and have installed fairly few fonts above those that get installed automatically with a "typical" Gnome desktop. But to justify a delay of more than 10s on a non-ancient system, you'd need to have at least 10 times as many fonts. Is that really what's going on, or is there something else at play? Stefan