[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Emacs startup is suddenly slow
From: |
yPhil |
Subject: |
Emacs startup is suddenly slow |
Date: |
Mon, 3 Oct 2022 03:47:02 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
Hello!
I just installed Emacs on a new machine, and noticed a considerable
delay at startup, from my usual sub-two seconds to up to more than ten
seconds! This gives me time to think and it's not good.
Here is the startup log:
Loading /etc/emacs/site-start.d/00debian.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
<= *This stays in the message area or a good 5 seconds*
Loading image-file...done
Loading display-line-numbers...done
Loading tab-line...done
Loading savehist...done
Loading paren...done
Emacs 27.1 loaded in 12.46 seconds with 8 garbage collections.
Loading /home/px/.emacs.d/recentf...done
Cleaning up the recentf list...done (0 removed)
Of course,emacs -q starts in under 2secs ; Here is the log:
Loading /etc/emacs/site-start.d/00debian.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
So I figured that those loading commands (image-file,
display-line-numbers, tab-line, savehist and paren, that all look
important) were site-specific, and tried
emacs --no-site-file
But they seem to still be here, and still are quite blocking:
Here is the log:
Loading image-file...done
Loading display-line-numbers...done
Loading tab-line...done
Loading savehist...done
Loading paren...done
Emacs 27.1 loaded in 12.02 seconds with 8 garbage collections.
And when started with emacs -q --no-site-file the log is empty.
"For information about GNU Emacs and the GNU system, type C-h C-a."
I also tried ideas developed in this thread:
https://lists.libreplanet.org/archive/html/bug-gnu-emacs/2018-03/msg00614.html
such as enabling or disabling the loading of packages in the
early-init.el file, but to no avail ; If anything it seems to slow make
the startup even slower.
Here is my full init file:
https://framagit.org/yphil/dotfiles/-/blob/master/.emacs
---------------------------------------
Any idea about what could be causing this saddening delay? Tomorrow I'm
going to go ahead and buy the fanciest micro SD card in the store
(https://www.tomshardware.com/best-picks/raspberry-pi-microsd-cards but
the one I have now is really pretty good already I tried a lot of those
and had freezes, but not that one, well except or Emacs startup) to try
and see if this is just a read/write performance problem ; The thing is,
as of today 27.1 seems to be more than two years old, if I'm not
mistaking? It's always like that in Ubuntu ; Could this be an old,
well-known and long fixed problem?
Thank you very much or your attention,
-- Philippe
# Version
GNU Emacs 27.1
# System
Linux 5.15.0-1015-raspi #17-Ubuntu SMP PREEMPT aarch64
- Emacs startup is suddenly slow,
yPhil <=