On Sat, 21 May 2022 15:09:50 -0600 (50 minutes, 46 seconds ago), Maxim Cournoyer <maxim.courno...@gmail.com> wrote:
> Hi, > Akib Azmain Turja <a...@disroot.org> writes: > > zimoun <zimon.touto...@gmail.com> writes: > > > >> Hi, > >> > >> On Wed, 18 May 2022 at 22:29, Akib Azmain Turja <a...@disroot.org> wrote: > >> > >>> 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, if you are able to time the two setups: the one using package.el > >> and ’leaf’ and the other one using Guix (and probably replacing the > >> lines «:ensure :package :feather :straight :el-get» to use instead the > >> Emacs packages installed by Guix). > >> > >> It could be informing about the potential gap. > There were timings made in the past when considering using the builtin > package.el to take care of some of the things we do, but it's much more > code than what we have and is unsurprisingly a bit slower. If you look > at the guix-emacs.el file that takes care of autoloads discovery you'll > see there's really not much to it, if fits all under 100 lines of code. > > But, why is the message is shown? Can someone remove it? It would > > probably be better that I myself clone the repo, fix it and send the > > patch, but my hard disk space isn't allowing me to do that. Is it > > possible disable that message by modifing any Guix configuration file? > Like Simon, I do not see why the autoloads-related messages are a > problem; they only occur when starting Emacs from scratch. If you have > so many packages that the loading time or loading messages bothers you, > you may want to consider running Emacs as a server and connecting to it > via emacsclient; that way you load it once when you login to your > session for example and that's it. > For what it's worth, the messages are not printed by that custom Guix > Elisp code explicitly but by the Emacs function `load', on line 59 of > guix-emacs.el: (load f 'noerror). If it really bothers you could change > it to: > (load f 'noerror 'nomessage) > Hope that helps, > Maxim The messages also appear when viewing the *Async-native-compile-log* when Emacs is native compiling packages. And the all of the "loading packages" messages are repeated before /each/ package that is compiled.