From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iJWDLAEfhWLIywAAbAwnHQ (envelope-from ) for ; Wed, 18 May 2022 18:29:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sF6SLAEfhWIqNgEA9RJhRA (envelope-from ) for ; Wed, 18 May 2022 18:29:53 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7F94D3C478 for ; Wed, 18 May 2022 18:29:53 +0200 (CEST) Received: from localhost ([::1]:50176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrMYa-0003I9-OE for larch@yhetil.org; Wed, 18 May 2022 12:29:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrMYI-0003Gq-QW for help-guix@gnu.org; Wed, 18 May 2022 12:29:34 -0400 Received: from knopi.disroot.org ([178.21.23.139]:51064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrMYG-0005w4-Up for help-guix@gnu.org; Wed, 18 May 2022 12:29:34 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B1B534373F; Wed, 18 May 2022 18:29:30 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id U5euYkyN-WPV; Wed, 18 May 2022 18:29:29 +0200 (CEST) From: Akib Azmain Turja DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1652891367; bh=lj4apPsvEWpJA60IZ5ZVlX8HGppvsh1rLJcCCQFT8AI=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=FIdV3hrsLb3XhL3Rl0YrgZfAX09+tV4g/RuVTqV8LxvxXDwANCPPTHfIjNXEJ/0j3 ZGTDqj91nWooI7PFGdOh1/TTd1QxMXIlML1qtmnx9oEixmdbl2QK3BoR29HXctpN9K pIFlD7stJYqtamYHioOkKLFLCjHVD7x33rCNy1Vdi5UHfv7GmxxqM6aepCrilqyzdK i3ZvYp2DwPLTwLIYi71XQ6VWyiGmia4KP+82zwYoX1CQTUwvkbXbSSDgxkWedSnT1n vCHW254MOTZpTvWlrXeAYBMPrLxvpwyOAT9LoCaYVGg4/a3kLaw+DtuZAovOi26zSa dxRD4CH7ZlJaA== To: zimoun , raingloom Cc: help-guix@gnu.org Subject: Re: Why Emacs is echoing message for each installed Emacs package while startup In-Reply-To: <86h75nkei6.fsf@gmail.com> References: <874k1qejtg.fsf@disroot.org> <20220516015831.577e652f@riseup.net> <87sfp9dh9m.fsf@disroot.org> <86fsl9sq5c.fsf@gmail.com> <8735h9cuck.fsf@disroot.org> <86h75pjj2c.fsf@gmail.com> <87v8u4bnc5.fsf@disroot.org> <86h75nkei6.fsf@gmail.com> Date: Wed, 18 May 2022 22:29:09 +0600 Message-ID: <87a6beby96.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652891393; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LGyxuyyv6uT6N+KbuBd0rS4c84UZGUdV5DypeIwLe1E=; b=EY+yl+JMSIyJEo967klW7884jJu5WQO2nF4n1CyKbc1Bl8LgUxo0c712X9AYqrmIU/UhDz Z7DV5FmtexHRX2OGPd/nrt4oR6LkoL2NH6VIkwNk4AauhohEf1yH7SaawtM2OCPJBzlIxo dI2uelT5/KPEEPgXiOwrFsHt93NjIxg4C5unNSaaLNU7GoZP6+nETYYvwFl1BHLr+BEjOj 6soejQZeWbZFHuze2wSgZyz99Z0ZPzfgvOHh0d3vjNbds4kWka75gNwu9TiSnA+zK8+Qmg nYNFneqNDO7d3iC1ndCI/cdSKyjP0d4Fn9F6mwpTnsYPEogIjs5LjZAj0ieVag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652891393; a=rsa-sha256; cv=none; b=Sz80qpoRjLj6lUEvGFqgHGD0/fAcDlFdu4mCUY7cr5QsaVZhHMoZPwxqR1yJhdD+mIs1OF BUGVUrWYSnBjYIG/Mk+AfHfoQ1ux1EV4Z0w+vP/PONzbyrWi9MJ3yfYE/IzkVqivFujdKp qgaLuQd5ceO4l/zvLLrMsPzFPx0cBzSkRA6iFb3xsHb8v9QCH6YSZ/wbzq43YdeWSJIgjm l87OdCyy07sEjnLgffzc+qPQLvKo7ZKSC/a4+tcgzejtWLQ7pj7WZhOFSxhxzgJfKyDl+R KWQVwEAm9Q7s/KhGZLvnljJNGFBn2l9O3KHJ7KJlSsqvZtYTfr5pia/pgES29g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=FIdV3hrs; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -10.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=FIdV3hrs; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7F94D3C478 X-Spam-Score: -10.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: HH4OfA7R/8Sv --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable zimoun writes: > Hi, > > On Tue, 17 May 2022 at 14:00, Akib Azmain Turja wrote: > >> I used to have more than hundred Emacs packages managed by Guix. But >> the startup time was more than 5 seconds. Then to switched package.el, >> and the startup time decreased to less than 1.5 seconds. I'm not sure >> why this happened, but I think the cause is maybe too many "redisplay"s >> due to many loading messages during startup. > > Well, I do not know. Hum, I do not have more than hundred, > > --8<---------------cut here---------------start------------->8--- > $ guix package -p ~/.config/guix/profiles/emacs/emacs -I | grep emacs | w= c -l > 43 > --8<---------------cut here---------------end--------------->8--- > > but it does not takes so long: > > --8<---------------cut here---------------start------------->8--- > $ time emacs -f kill-emacs > > real 0m1.682s > user 0m1.279s > sys 0m0.241s > --8<---------------cut here---------------end--------------->8--- > > which looks similar to, > > M-x emacs-init-time > 1.727791789 seconds > > therefore, I am surprised by your timings. For instance, > > --8<---------------cut here---------------start------------->8--- > $ guix shell emacs $(guix package -A | grep ^emacs- | cut -f1 | head -200) > [env]$ time emacs -nw -q -f kill-emacs > > real 0m2.368s > user 0m2.037s > sys 0m0.309s > --8<---------------cut here---------------end--------------->8--- The timing maybe wrong, because it is more a year old (and I didn't measure). I was new to Emacs Lisp (I used Doom before), and my init.el was messy. So maybe the init file had something in it that was responsible for slow startup when the packages managed by Guix. > > > Well, I do not know if =E2=80=99with-eval-after-load=E2=80=99 is enough f= or somehow > allowing lazy loading. Hum, I am not convinced that the =E2=80=99redispl= ay=E2=80=99 is > the issue but instead, yeah maybe walking all the files requires some > filesystem IO and yeah maybe one unique big concatenated autoload file > would improve the situation. Loading many autoloads files isn't a big deal for me, I don't use that optimization. With `package-quickstart' set to t, my init time is only 0.1 seconds faster, which I don't care. > > > Do you use =E2=80=99use-package=E2=80=99 or something similar for your co= nfig? Yeah, I use `leaf'. > > > Cheers, > simon =2D-=20 Akib Azmain Turja This message is signed by me with my GnuPG key. It's fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmKFHtUACgkQVTX89U2I YWsOjRAApfeth30ks2CjfuVkIdlXD8Oov8c+08MzvYFN81oV1X4M2JafNwWHb7RE ctmToHO2hXd1tgcnfhqZFbLnXj6fKiEuiWVKhfR0oJgqdUtqAh0yuVAcLYd0p5qx 1I5S6kkvY/R8notOIGcK2OF+GCVXteDvt/lj1/cF7Be1b6CT9Aw1cl+0KUbTY3Rh QdszqEgowQGcG2KHbdsRwgH673yk1KuQmowCbEvGgbcITmGF0R4yBvJ9E/fEgKGG m6gpXE5kpCpARJ6p9lf8gI8BXGF2gQQOtKywwfnWcN9UGGSHmyyu2ua+9v72ufiA yYHo28XsKKt9C6nYPZUnuKFO0ztbxGa4LI2r5d3QtlDH4rbPHmpOv79+8c4Ag7HQ 3Pivl75lAghE88Hr3XLwGbUFTN06NcOJvYbbLBe0H3i+bsz0H6qVN0OJN0wFcQ3k UjIfKw+5TiKBg4pwri7KIXwz/40dX4LPAwlKRqV9r7dEk7/qKaxuAZ9Xpc7/4rTz PBUWJwNFr23lzyvlHnJh3bdrqsAQz+VdOWuHBOfKjd2wnFmfdMwvAFK/GM6d+scG m6a4ZavfLbooy4ndK9FAv6cpedm4KfaB5gRJCUiDFrUB5H3xW0DzUiKreQ5K5W+j sWVLP3MLLTtug6x1NGuioji0dX1eOJx0bcDuDUR86eEFZYg0R5M= =PNeW -----END PGP SIGNATURE----- --=-=-=--