emacs-devel
[Top][All Lists]
Advanced

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

Re: bug#30854: 27.0.50; Speeding up package.el startup


From: Arthur Miller
Subject: Re: bug#30854: 27.0.50; Speeding up package.el startup
Date: Sun, 20 Dec 2020 15:23:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>> Maybe the difference is just due to loading `package`?
>>> IOW, what happens if you add (require 'package) to your "Quick start
>>> disabled" version?  Does the startup time go back up to ~0.28?
>> Why not just preload package.el?
>
> First, I'd like to understand if that's indeed the source of the
> timing difference.
>
> But yes, I think it would make a lot of sense to split package.el into the 
> part
> that manages installation/updates/... and the part that just activates
> the packages installed and to preload the second part.
> Also exposing the API of that second part might encourage other package
> managers to make use of it.
>
>
>         Stefan
It seems you were correct.

I just added (require 'package) and the startup time went t0 0.29+; I
had my baked int autoloads file, so that is why it is probably somewhat
higher since it is doing extra now. Measured several times and it didn't
go below 0.29+ secs. You can see below en excerpt of init.el (just for
the illustration):


;;; init.el -*- lexical-binding: t; -*-
;;
;; This file is machine generated by init-file generator, don't edit
;; manually, edit instead file init.org and generate new init file from it

(defvar old-file-name-handler file-name-handler-alist)
(setq file-name-handler-alist nil)

(let ((default-directory  (expand-file-name "lisp" user-emacs-directory)))
      (normal-top-level-add-to-load-path '("."))
      (normal-top-level-add-subdirs-to-load-path))

(define-prefix-command 'C-z-map)
(global-set-key (kbd "C-z") 'C-z-map)
(define-prefix-command 'C-f-map)
(global-set-key (kbd "C-f") 'C-f-map)
(global-unset-key (kbd "C-v"))
(require 'package)
(setq load-path (append 
'("/home/arthur/.emacs.d/elpa/yasnippet-20200604.246" 
"/home/arthur/.emacs.d/elpa/wrap-region-20140117.720" 
"/home/arthur/.emacs.d/elpa/which-key-20200908.2301" 
"/home/arthur/.emacs.d/elpa/tablist-20200427.2205" 
"/home/arthur/.emacs.d/elpa/spinner-1.7.3" 
"/home/arthur/.emacs.d/elpa/solarized-theme-20201207.1431" 
"/home/arthur/.emacs.d/elpa/s-20180406.808" 
"/home/arthur/.emacs.d/elpa/projectile-20201210.927" 
"/home/arthur/.emacs.d/elpa/pos-tip-20191227.1356" 
"/home/arthur/.emacs.d/elpa/popup-20200610.317" 
"/home/arthur/.emacs.d/elpa/pkg-info-20150517.1143" 
"/home/arthur/.emacs.d/elpa/pdf-tools-20200512.1524" 
"/home/arthur/.emacs.d/elpa/org-pdftools-20200929.2241" 
"/home/arthur/.emacs.d/elpa/org-noter-pdftools-20200929.2241" 
"/home/arthur/.emacs.d/elpa/org-noter-20191020.1212" 
"/home/arthur/.emacs.d/elpa/org-20201216" 
"/home/arthur/.emacs.d/elpa/nov-20201207.3" 
"/home/arthur/.emacs.d/elpa/modern-cpp-font-lock-20200530.1010" 
"/home/arthur/.emacs.d/elpa/math-symbol-lists-20200131.2333" 
"/home/arthur/.emacs.d/elpa/markdown-mode-20201211.329" 
"/home/arthur/.emacs.d/elpa/lv-20200507.1518" 
"/home/arthur/.emacs.d/elpa/lsp-ui-20201209.332" 
"/home/arthur/.emacs.d/elpa/lsp-mode-20201211.1939" 
"/home/arthur/.emacs.d/elpa/imenu-anywhere-20190512.1939" 
"/home/arthur/.emacs.d/elpa/hydra-20201115.1055" 
"/home/arthur/.emacs.d/elpa/ht-20201119.518" 
"/home/arthur/.emacs.d/elpa/helpful-20201012.614" 
"/home/arthur/.emacs.d/elpa/helm-xref-20201004.1817" 
"/home/arthur/.emacs.d/elpa/helm-swoop-20200814.448" 
"/home/arthur/.emacs.d/elpa/helm-projectile-20201208.1837" 
"/home/arthur/.emacs.d/elpa/helm-org-20200311.633" 
"/home/arthur/.emacs.d/elpa/helm-make-20200620.27" 
"/home/arthur/.emacs.d/elpa/helm-lsp-20200910.518" 
"/home/arthur/.emacs.d/elpa/helm-ls-git-20200519.912" 
"/home/arthur/.emacs.d/elpa/helm-flyspell-20170210.1901" 
"/home/arthur/.emacs.d/elpa/helm-emms-20201205.1635" 
"/home/arthur/.emacs.d/elpa/helm-dired-history-20170524.1046" 
"/home/arthur/.emacs.d/elpa/helm-descbinds-20190501.935" 
"/home/arthur/.emacs.d/elpa/helm-core-20201202.907" 
"/home/arthur/.emacs.d/elpa/helm-c-yasnippet-20201118.1009" 
"/home/arthur/.emacs.d/elpa/helm-ag-20200915.1650" 
"/home/arthur/.emacs.d/elpa/helm-20201211.1044" 
"/home/arthur/.emacs.d/elpa/google-c-style-20180130.1736" 
"/home/arthur/.emacs.d/elpa/gnupg" 
"/home/arthur/.emacs.d/elpa/flycheck-20201214.2154" 
"/home/arthur/.emacs.d/elpa/f-20191110.1357" 
"/home/arthur/.emacs.d/elpa/expand-region-20200304.1839" 
"/home/arthur/.emacs.d/elpa/esxml-20201130.809" 
"/home/arthur/.emacs.d/elpa/esup-20200814.1400" 
"/home/arthur/.emacs.d/elpa/epl-20180205.2049" 
"/home/arthur/.emacs.d/elpa/emms-20201105.2351" 
"/home/arthur/.emacs.d/elpa/elisp-refs-20200815.2357" 
"/home/arthur/.emacs.d/elpa/dired-subtree-20180922.1615" 
"/home/arthur/.emacs.d/elpa/dired-hacks-utils-20201005.2318" 
"/home/arthur/.emacs.d/elpa/diminish-20191127.1326" 
"/home/arthur/.emacs.d/elpa/dash-functional-20200617.702" 
"/home/arthur/.emacs.d/elpa/dash-20200803.1520" 
"/home/arthur/.emacs.d/elpa/company-quickhelp-20201208.2308" 
"/home/arthur/.emacs.d/elpa/company-math-20200131.2337" 
"/home/arthur/.emacs.d/elpa/company-lsp-20190612.1553" 
"/home/arthur/.emacs.d/elpa/company-c-headers-20190825.1631" 
"/home/arthur/.emacs.d/elpa/company-20201214.1620" 
"/home/arthur/.emacs.d/elpa/beacon-20190104.1931" 
"/home/arthur/.emacs.d/elpa/auto-package-update-20200826.2227" 
"/home/arthur/.emacs.d/elpa/async-20200809.501") load-path))
(let ((load-true-file-name 
"/home/arthur/.emacs.d/elpa/yasnippet-20200604.246/yasnippet-autoloads.el")(load-file-name
 "/home/arthur/.emacs.d/elpa/yasnippet-20200604.246/yasnippet-autoloads.el"))

(autoload 'yas-minor-mode "yasnippet" "\
Toggle YASnippet mode.

...




reply via email to

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