From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Shuguang Sun Newsgroups: gmane.emacs.bugs Subject: bug#30731: Slower startup using March (27.0.50) build in windows Date: Sun, 11 Mar 2018 11:25:13 +0800 Message-ID: References: <87a7vi1151.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114d8c86d9b7b705671a92ac" X-Trace: blaine.gmane.org 1520738652 12629 195.159.176.226 (11 Mar 2018 03:24:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Mar 2018 03:24:12 +0000 (UTC) Cc: 30731@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 11 04:24: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 1eurah-00038b-8h for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Mar 2018 04:24:07 +0100 Original-Received: from localhost ([::1]:52860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eurck-0007NG-3N for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Mar 2018 22:26:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eurcb-0007MP-BP for bug-gnu-emacs@gnu.org; Sat, 10 Mar 2018 22:26:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eurcY-0000pI-7F for bug-gnu-emacs@gnu.org; Sat, 10 Mar 2018 22:26:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46720) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eurcY-0000pA-05 for bug-gnu-emacs@gnu.org; Sat, 10 Mar 2018 22:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eurcX-00035l-LH for bug-gnu-emacs@gnu.org; Sat, 10 Mar 2018 22:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Mar 2018 03:26: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.152073872211818 (code B ref 30731); Sun, 11 Mar 2018 03:26:01 +0000 Original-Received: (at 30731) by debbugs.gnu.org; 11 Mar 2018 03:25:22 +0000 Original-Received: from localhost ([127.0.0.1]:54617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eurbt-00034X-SH for submit@debbugs.gnu.org; Sat, 10 Mar 2018 22:25:22 -0500 Original-Received: from mail-qk0-f172.google.com ([209.85.220.172]:36225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eurbr-00034K-JP for 30731@debbugs.gnu.org; Sat, 10 Mar 2018 22:25:19 -0500 Original-Received: by mail-qk0-f172.google.com with SMTP id d206so8003198qkb.3 for <30731@debbugs.gnu.org>; Sat, 10 Mar 2018 19:25:19 -0800 (PST) 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=CctLLzcdfbn+sKgW/bLSsecQiFuKyqVXms4x7x8PeIE=; b=jCHYBNPZ9Tgj5sCdNGNpx2lefZn+cr5tikxfeO3PxQ+/XMdpz1H9MAymG5z2H1yCa2 Zaeh2jVeTK0UpEdS5j4A89JeJ43TO98lE40WiKLjGMX3lPWAHDxDntwR++TJaTpI/flO uELTgz4N8/pC0HA36fPHpb+XKgtk31VAzuKyGncVr3waNGwIfcKg7ev3V30wXEEuAoH0 qOInzBoSbhwoS6A5Om1dca2rBIUxm34s+3lpIFDB3am6Vy+kvr3PguKLNHApEBWv/hFJ UAQ2p06aT94X6rQRWiFpaMaKLSBuT+Jf5sMJLu0SJJS8dDkYh76zChSk2NFbpT74oBiq mBCg== 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=CctLLzcdfbn+sKgW/bLSsecQiFuKyqVXms4x7x8PeIE=; b=p8xBGapKepzi9hok974nTMv0jBBDnt3U5Ffcsoqh+o0ReBgKif1vy9s3PVBdBFDAqq xfBe+Wpu7dbEbcj+rretBf4BfPXjuCEc3robvLJTGrgF0b5NkOScvr2RcQRPRUpJjgS9 oACEbWHkRND3pLc/uT+j3i8kGn74CsnKHhlnxbXHqfHYpafcheV1/hJ44lSqPNXXyA3i y6y3vxRUJFNqp+q+TWoR1C46NWJa3Vde2ZbxXcLLB3G+VOJcyeGJ91cwsdzLnqS5QoUi l7b47XlvByDNI6ZulcPpWb6bsx0GZ+pb+b1DvNdbgqbNU1O6m4dh9sg21O5subqPcbgI bwmQ== X-Gm-Message-State: AElRT7ESl2Rg0QQ/r4PaeMetWWenfaqhLmPmRgwy4mvnTdyh1t1JiVZ3 EJOwkNA4sevMlfDbnmP5C/5D4cjogCeHFERd5zQ= X-Google-Smtp-Source: AG47ELsXa4t/T+q7zgqKYa8r6kS4re3WkFQ9BYEbdxEzV++IJ30f6oFBnhp/GJz/66PWexFJ3ISUwo412VeFRHwsmu4= X-Received: by 10.55.167.143 with SMTP id q137mr5511251qke.27.1520738714104; Sat, 10 Mar 2018 19:25:14 -0800 (PST) Original-Received: by 10.237.47.196 with HTTP; Sat, 10 Mar 2018 19:25:13 -0800 (PST) In-Reply-To: <87a7vi1151.fsf@gmail.com> 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:144121 Archived-At: --001a114d8c86d9b7b705671a92ac Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I patched the startup.el and package.el in the installed emacs. They seems not work. I'll try to patch the git source prior to the complilation later when I get time. 1. Even I put the (setq package-enable-at-startup nil) in the top of the .emacs, it takes 3.692 sec before loading others of the init file. I have a site-start.el file, which is suposed to run before .emacs is loaded. Woud it impact the the load process? NB. the 3.692 does not count the site-start in. It is from (message ">>> start load .emacs: %.3f sec <<<" (float-time (time-subtract after-init-time before-init-time))) 2. No mather whether I set package-enable-at-startup, it takes about 8 sec to load the custom-set-variable. However, it takes only 2.5 sec in the Feb version. Symbol's value as variable is void: Info-default-directory-list [14 times] >>> start load .emacs: 3.692 sec <<< Loading Sun Shuguang=E2=80=99s .emacs file >>> before custom-set-variables : 4.176 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: 12.387 sec <<< On Fri, Mar 9, 2018 at 9:35 AM, Noam Postavsky wrote: > Shuguang Sun writes: > > > I built emacs 27 on 4th March, however, the startup gets slower than > > the build on 4th Feb (which is camparable with the build in https:// > > alpha.gnu.org/gnu/emacs/pretest/windows/emacs-27/). > > I'm sorry I don't know how to repeat it using "-q". > > > > System: Windows 7 > > > Below is the message from 4th March build. > > 1. It has a warning at the very begining. If start with -q, there > > will be no such warning. > > 2. Actually there is nothing before " >>> start load .emacs: 2.575 > > sec <<< ", however, it still takes 2.574 sec. > > 3. The load time is longer than the 4th Feb build. > > > > Symbol's value as variable is void: Info-default-directory-list [14 > > times] > > Could you try out the patch posted to emacs-devel? > > https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00040.html > --001a114d8c86d9b7b705671a92ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I patched the startup.el and package.el in the instal= led emacs. They seems not work. I'll try to patch the git source prior = to the complilation later when I get time.


1. Even I put the (setq package-enable-at-startup nil) in the top o= f the .emacs, it takes 3.692 sec before loading others of the init file. I = have a site-start.el file, which is suposed to run before .emacs is loaded.= Woud it impact the the load process? NB. the 3.692 does not count the site= -start in. It is from
(message ">>> start load= .emacs: %.3f sec <<<"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (float-time (time-subtract after-init-time before-init-time)))=

2. No mather whether I set package-enable-at-startup, it= takes about 8 sec to load the custom-set-variable. However, it takes only = 2.5 sec in the Feb version.

Symbol's value= as variable is void: Info-default-directory-list [14 times]
>>>= ; start load .emacs: 3.692 sec <<<
Loading Sun Shuguang=E2=80= =99s .emacs file
>>> before custom-set-variables : 4.176 sec &l= t;<<
Loading image-file...done
Loading time...done
Loading c= ompletion...done
Loading elec-pair...done
Loading icomplete...doneLoading ido...done
Loading avoid...done
Loading savehist...done
L= oading paren...done
>>> custom-set-variables time: 12.387 sec &= lt;<<


On Fri, Mar 9, 2018 at 9:35 AM, Noam Postavsky <npostavs@gm= ail.com> wrote:
Shuguang Su= n <shuguang@gmail.com> writ= es:

> I built emacs 27 on 4th March, however, the startup gets slower than > the build on 4th Feb (which is camparable with the build in https:// > alpha.gnu.org/gnu/emacs/pretest/wi= ndows/emacs-27/).
> I'm sorry I don't know how to repeat it using "-q".<= br> >
> System: Windows 7

> Below is the message from 4th March build.
> 1. It has a warning at the very begining. If start with -q, there
> will be no such warning.
> 2. Actually there is nothing before " >>> start load .em= acs: 2.575
> sec <<< ", however, it still takes 2.574 sec.
> 3. The load time is longer than the 4th Feb build.
>
> Symbol's value as variable is void: Info-default-directory-list [1= 4
> times]

Could you try out the patch posted to emacs-devel?

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

--001a114d8c86d9b7b705671a92ac--