GNU bug report logs - #30731
Slower startup using March (27.0.50) build in windows

Previous Next

Package: emacs;

Reported by: Shuguang Sun <shuguang <at> gmail.com>

Date: Tue, 6 Mar 2018 16:21:02 UTC

Severity: normal

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Forwarded to https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00040.html

Full log


View this message in rfc822 format

From: Shuguang Sun <shuguang <at> gmail.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 30731 <at> debbugs.gnu.org
Subject: bug#30731: Slower startup using March (27.0.50) build in windows
Date: Wed, 14 Mar 2018 13:02:39 +0800
[Message part 1 (text/plain, inline)]
The diff files compares the loading time given package initialized early or
late. And I attached a list of packages I installed.

On Wed, Mar 14, 2018 at 9:38 AM, Noam Postavsky <npostavs <at> gmail.com> wrote:

> Shuguang Sun <shuguang <at> gmail.com> writes:
>
> > The trace-log from package-earlyload has less
> > do-after-load-evaluation items which are supposed to be loaded during
> > the package-initialize. However, it still takes longer time for
> > custom-set-variables  during early package initialization.
> > The two items, mail-prsvr.elc and mm-util.elc are in earlyload but
> > not in lateload.
>
> Hmm, somehow that was not so informative as I'd have hoped.  Maybe
> measuring each setting individually would give more info, try this:
>
> (require 'pcase)
>
> (defmacro split-custom-set-variables (cset-form)
>   (pcase cset-form
>     (`(custom-set-variables . ,entries)
>      `(progn
>         ,@(mapcar
>            (pcase-lambda (`(quote (,sym . ,args)))
>              `(let ((t0 (current-time))
>                     (tf nil))
>                 (custom-set-variables (quote (,sym . ,args)))
>                 (setq tf (current-time))
>                 (message "setting `%s': %.3fs" ',sym
>                          (float-time (time-subtract tf t0)))))
>            entries)))))
>
> (split-custom-set-variables
>  (custom-set-variables
>   ...))
>
>
[Message part 2 (text/html, inline)]
[pkg-list.txt (text/plain, attachment)]
[pkg-e-l.diff (application/octet-stream, attachment)]
[pkg-late.txt (text/plain, attachment)]

This bug report was last modified 7 years and 59 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.