From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#30731: Slower startup using March (27.0.50) build in windows Date: Tue, 13 Mar 2018 21:38:41 -0400 Message-ID: <87d107xwpp.fsf@gmail.com> References: <87a7vi1151.fsf@gmail.com> <87efkqzf40.fsf@gmail.com> <87woyixdpx.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1520991433 28255 195.159.176.226 (14 Mar 2018 01:37:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2018 01:37:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 30731@debbugs.gnu.org To: Shuguang Sun Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 02:37:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evvLo-0007DL-Br for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 02:37:08 +0100 Original-Received: from localhost ([::1]:43970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evvNr-0002SW-6y for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Mar 2018 21:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evvNk-0002Ry-MI for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 21:39:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evvNe-00089N-8v for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 21:39:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evvNe-00089A-42 for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 21:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evvNd-0001rP-R8 for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 21:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Mar 2018 01:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30731 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30731-submit@debbugs.gnu.org id=B30731.15209915317131 (code B ref 30731); Wed, 14 Mar 2018 01:39:01 +0000 Original-Received: (at 30731) by debbugs.gnu.org; 14 Mar 2018 01:38:51 +0000 Original-Received: from localhost ([127.0.0.1]:60203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evvNT-0001qx-4U for submit@debbugs.gnu.org; Tue, 13 Mar 2018 21:38:51 -0400 Original-Received: from mail-it0-f49.google.com ([209.85.214.49]:55311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evvNR-0001qh-H2 for 30731@debbugs.gnu.org; Tue, 13 Mar 2018 21:38:49 -0400 Original-Received: by mail-it0-f49.google.com with SMTP id n136-v6so2515065itg.5 for <30731@debbugs.gnu.org>; Tue, 13 Mar 2018 18:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=nYOAK0ioKRfArgnoAPaxCwhs4quEE8Cf2JknCVbIaeE=; b=qtJ08NVIulrBQFrps3t5/g9LQLloi8lweRTNEp1H9U8Cvby9Ws1xO3RvAB5CXdOSNR RLLAUBq/oex22vEsOJfs07DDpPD7Rx6Z+cDmE8zYnostYiEjsuhzQuHpUTKxnRVeGVwi 41gPwaVXsq1AWMso+mdjtqiDC6frha8U8mLes11sITnQq8aqN3uw0vjLX78vV1s9jmDV 1l7Ki9Mwel/AcaCeyclONU9MkMdx4WuO70B25n362Ip6T/2TIEkMZ35eMOan8j+b6tmK iuvPgJfbVWxH8kFrKKEm5MaR6OinazZE1GSJor0LWh7F0iNOxyaJBR1dVY87VU6wHq9D mW6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=nYOAK0ioKRfArgnoAPaxCwhs4quEE8Cf2JknCVbIaeE=; b=MZwGZ7H6XzrBkJLMz4FwIh5eZrVwJovXxiLhnKzh+bSGCm3m39TvcuD98mHuGhfUv/ YqO8G9wsYURIdIEXlS1GDUwim7ul9dabrLF0qLZUVxYrwvFlcsul3HKqXDKRuY79PS7i 150d2wSRIclmvvlAtA7PfRd6+ZJWEtLJftDVJBbBAGPVpJNamLfBsTL+EhDZsHg0aX4C ovlvyi2Cx7oXCUoKi8oaLhJcAZr3PqWz3IrVYkphbTBbencLpA6wt22XJvNSO+Lv6bD0 LiURJljkgorWjsS+QE81A2wiwl9ue+izBS9y/JeXPz/0n6VSKHC5GOdN2qQhG5tZk6k6 RdSQ== X-Gm-Message-State: AElRT7Fpi0qxeJs8ist/3sGYQbk5CkAsQCnwRt8a6V0u9DzLXgLEUC03 MjOTgO06z1BnvBq7DJjOfs9uLA== X-Google-Smtp-Source: AG47ELvfIfxn49LJtLf6s2ImMoCK2UhyO306dE5aPavg9NF/Gl/nYPYsLAtGdc0gseo7Qp43uHsX0w== X-Received: by 2002:a24:6794:: with SMTP id u142-v6mr179691itc.19.1520991523938; Tue, 13 Mar 2018 18:38:43 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id r6sm720695ioe.85.2018.03.13.18.38.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Mar 2018 18:38:43 -0700 (PDT) In-Reply-To: (Shuguang Sun's message of "Tue, 13 Mar 2018 18:34:16 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144228 Archived-At: Shuguang Sun 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=C2=A0 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 ...))