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: Mon, 12 Mar 2018 13:09:13 -0400 Message-ID: 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" X-Trace: blaine.gmane.org 1520874489 1304 195.159.176.226 (12 Mar 2018 17:08:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2018 17:08:09 +0000 (UTC) Cc: 30731@debbugs.gnu.org To: Shuguang Sun Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 12 18:08:05 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 1evQvc-0000DY-Nd for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2018 18:08:04 +0100 Original-Received: from localhost ([::1]:33291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evQxf-0001eK-Jm for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2018 13:10:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evQxZ-0001dj-BZ for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 13:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evQxW-0008RA-LJ for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 13:10:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evQxW-0008Qq-HQ for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 13:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evQxW-0005w9-Au for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 13:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Mar 2018 17:10:02 +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.152087456222766 (code B ref 30731); Mon, 12 Mar 2018 17:10:02 +0000 Original-Received: (at 30731) by debbugs.gnu.org; 12 Mar 2018 17:09:22 +0000 Original-Received: from localhost ([127.0.0.1]:57473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evQws-0005v8-MN for submit@debbugs.gnu.org; Mon, 12 Mar 2018 13:09:22 -0400 Original-Received: from mail-oi0-f48.google.com ([209.85.218.48]:34561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evQwp-0005ut-7n for 30731@debbugs.gnu.org; Mon, 12 Mar 2018 13:09:21 -0400 Original-Received: by mail-oi0-f48.google.com with SMTP id c83so12948263oib.1 for <30731@debbugs.gnu.org>; Mon, 12 Mar 2018 10:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tH129BWlYvGfC/iuTvIqilSN5hbasBKJTXSjYF/511g=; b=b8tKg7HiIwBt/TNd5YYT+D3lfz0ml+HXvcarJmWT0kLDnDNKfDxMVy5ZbAS+i3PuZE u+ZB5Xt1/xqb0XkcTpb1dh5wyoMAbR053Mce0DwIzxbpk3adIPWGJ3m5ZUTUbPsgJI4m RIlYu0RcygnnvztOaFgMiiypVfxqG01UykjzhFEOaS2j+RZKC+p9k4xFyPhgmtsmvTDd IkEQN0ardwerJGiR7iXjK2UMA7hes37Urr2O7h6LVyWCtXX53d8K40D2223k2GVQ6Xrk 6r7utAwjfauybWV8AWZfCwMih1juA8bDN6oZNU30DUlGCSM9nyL0yEW/q/CXviDPm2hR lXug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tH129BWlYvGfC/iuTvIqilSN5hbasBKJTXSjYF/511g=; b=XiRPuzImybpcPlHopO3QNOxSoC7WJKRUQSBGEsI/2p4rIypIikJSFp7SbIHLyjVgK6 8roThwvIpF4Jci/WqS4spXgiCtLdPxcVNxcb/hPZEc08CB1AeEXTNkS1MaEHD+ygiMY2 6YPj0RqSPyh+75ZAVD4hYa1cyTdAkNaTNxRsv2VdJBwG/58BFjFY/DYre/x9XefBhGyb nRn+IHafB2eR9Z2y0adeQw5CAivDMVVgkaR11hvXQPPznun1UEjNwYKLK5/+D8Ij7GEH /qg7XeiIRMZY618ckn++7gGD2ni63hqbP1PUF9hYEIc6lUsYv1j7kPew+XKVG2/6OB3q 4aEg== X-Gm-Message-State: AElRT7FMKreWqcKGvsyXFUJrNcG1Deq6JygKgUCIJMm8a/iwlqo5KP5p dvWwJcaqBU+i2HaDUutuwEii//cPZSGIJzXvZkQ= X-Google-Smtp-Source: AG47ELv/v9CbtDI14gfU9LioUr08K5iddZ+xEez96VfumkPCY7K45tAEnqNn9pOQLIgUDaBxgjNFGGORy42OLOTIL2w= X-Received: by 10.202.80.13 with SMTP id e13mr5681577oib.304.1520874553591; Mon, 12 Mar 2018 10:09:13 -0700 (PDT) Original-Received: by 10.74.59.65 with HTTP; Mon, 12 Mar 2018 10:09:13 -0700 (PDT) In-Reply-To: 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:144157 Archived-At: On Mon, Mar 12, 2018 at 12:08 PM, Shuguang Sun wrote: > FYI. If put (package-initialize) before custom-set-variables, >>>> before custom-set-variables : 3.637 sec <<< > Loading image-file...done > Loading time...done > Loading completion...done > Loading elec-pair...done > Loading icomplete...done > Loading ido...done > Loading avoid...done > Loading savehist...done > Loading paren...done >>>> custom-set-variables time: 10.080 sec <<< > > Don't know whether autoloads being triggered. It is hard to test one by one. Try ... (require 'trace) (trace-function 'do-after-load-evaluation) (custom-set-variables ...) (untrace-function 'do-after-load-evaluation) and see if there is a difference in the *trace-output* buffer when you call package-initialize first. Maybe also do (mapc #'require '(image-file time completion elec-pair ido avoid savehist paren)) to get the known loads (which I see listed in your output above) out of the way.