emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this "save practice" (setting default font scale)?


From: Arthur Miller
Subject: Re: Is this "save practice" (setting default font scale)?
Date: Sat, 21 Nov 2020 14:45:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Manuel Uberti <manuel.uberti@inventati.org> writes:

> On 21/11/20 07:43, Arthur Miller wrote:
>> I was too lazy to refactor my old setup, but it was starting to go high
>> in startup time ~2secs from 1.2 so I finally decided to see if I can speed
>> it up with early init. This is what I have: 
>> 
>> ;;; early-init.el ---                                -*- lexical-binding: t; 
>> -*-
>> 
>> (setq gc-cons-threshold most-positive-fixnum)
>> 
>> (setq frame-inhibit-implied-resize t)
>> 
>> (push '(menu-bar-lines . 0) default-frame-alist)
>> (push '(tool-bar-lines . 0) default-frame-alist)
>> (push '(vertical-scroll-bars) default-frame-alist)
>> (push '(font . "Anonymous Pro-16") default-frame-alist)
>> (custom-set-faces '(default ((t (:height 140)))))
>> 
>> ;;; early-init.el ends here
>> 
>> Seems to work nice. (gc threshold is restored in later in setup)
>> 
>
> Is there any difference to use custom-set-faces for :family too? Something 
> like:
>
> (custom-set-faces
>  '(default ((t (:family "Anonymous Pro-16"
>                 :height 140
>                 :weight light)))))
It seems to be just very slightly slower; but it might also be too small
of a difference for my system to give a polite result.

With above my startup is currently repporting times all betweeen ~0.2x
to ~ 0.3x; with your version it is aroun ~0.3 to ~0.4 I measure 5
startups every time. 

I don't see reasons why there would be a difference; it might be just
fluctuations in my system. I dont' know how polite (emacs-init-time) is
either. 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]