From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "otadmor ." Newsgroups: gmane.emacs.devel Subject: Re: [SOLVED] (was: very different start up for emacs master compared with 3 month ago) Date: Tue, 13 Aug 2019 21:46:48 +0300 Message-ID: References: <87sgqanxxk.fsf@mat.ucm.es> <83blwy9vef.fsf@gnu.org> <87tvale3t6.fsf_-_@mat.ucm.es> <83o90trvf3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000db56150590041085" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="112420"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Uwe Brauer , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 13 20:47:56 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hxbps-000TAH-C4 for ged-emacs-devel@m.gmane.org; Tue, 13 Aug 2019 20:47:56 +0200 Original-Received: from localhost ([::1]:54832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hxbpr-0003VP-DS for ged-emacs-devel@m.gmane.org; Tue, 13 Aug 2019 14:47:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46824) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hxbp4-000379-0J for emacs-devel@gnu.org; Tue, 13 Aug 2019 14:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hxbp2-0006VE-TZ for emacs-devel@gnu.org; Tue, 13 Aug 2019 14:47:05 -0400 Original-Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:41940) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hxbp0-0006UD-Ti; Tue, 13 Aug 2019 14:47:03 -0400 Original-Received: by mail-lj1-x231.google.com with SMTP id m24so52635ljg.8; Tue, 13 Aug 2019 11:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fpDy3OiayblZlwlIAegRtviKm60+SjjBaFqYA4QYnac=; b=SDwQJGdjqnpHWndItxVZkwGd1Wu14eC/qW1S1Mxq7/UwP/uGbxYip6/vwDaS2JLVNi cV5dlJ5zxbOkVGnXFSKwp5COt3r3ticEHbx6x7gYLW+FuizwW/d8+mJlziRp+byEBUhg F1cp/oYER1J2RPmSN2zOnRjDHk9kBXeDiVtV5T/+9Bd3a6V50U4kRxOWFbxjBx9kNUFc /YDv+Wc+d864mSbpPW22jXc7Md1wOv6FDMm1Rukrb/nn4nabGZBaLlPYDQhcEJVjJkOn a4BT4DO1kd00c0lf9UDAFeT+xpWq/zNxqFoNMyFjA1qJIghKh1Y3YQvZXklK6gUiZXbx 6Jyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fpDy3OiayblZlwlIAegRtviKm60+SjjBaFqYA4QYnac=; b=HEnAv6HEDXaesDIt7i9RQn/f5K8fAMZbiPlCNHqjxLJYd5d6QnF6wBGxpkcoMaPSU4 c1XeX8u2N8MBMGIGKOU0aqquhXdvyTVcIMEsdDyCdNTG7e/8VGYr05QSnvkpqkQwLWfK IhvZz2KnErKc86Jmye7mPCAn3/HR277qp2GIacZq4GI9Y5Fgv6LXdLVSdxcEbRI6qggC Csr/w8jfthKBBBKTzO/I6sC9Ycijj8Llh07TbQrx9I4pqP4+9nOq8tdVRqpopBYleeyT hnRBuMJDdVnoFlRikOy9qIEc3bjmf91W/40CsdRLVayhcKPQY1szN/zC8wL9ItJBAygM KT6Q== X-Gm-Message-State: APjAAAUVE4d9zz1osRlv31U+iX2eFMYYHQcqGNYPb60MpiolRmRlSdvA /Mexufs7X0YwvzDzjRqGLDytntWVP2msICQGN1zsLg== X-Google-Smtp-Source: APXvYqxxniOGC1QdQ0UygrMIONlVF6E3kyBHx19FV2qtPEuU57DQnsmpkGPkrS3/3dyl8N+kE21yBkNfSoHswHClXQU= X-Received: by 2002:a2e:993:: with SMTP id 141mr10172893ljj.15.1565722020630; Tue, 13 Aug 2019 11:47:00 -0700 (PDT) In-Reply-To: <83o90trvf3.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239348 Archived-At: --000000000000db56150590041085 Content-Type: text/plain; charset="UTF-8" When compiling emacs for daily use is it better to compile with -O? Or without -O at all? Which optimization level is suggested? On Tue, Aug 13, 2019, 17:29 Eli Zaretskii wrote: > > From: Uwe Brauer > > Date: Tue, 13 Aug 2019 12:51:33 +0200 > > > > >> | Version | init file | without > init | > > >> > |------------------------------------------+-----------+--------------| > > >> | b06917a4912a60402025286d07d4a195749245c4 | 50 sec | 1-2 sec > | > > >> | 1d75604eaded6a8482d28d57bc8e6a4d99d5caee | 15 sec | 1-2 sec > | > > >> > > >> #+end_src > > >> > > >> > > >> Any idea whats up? > > >> > > >> How can I debug this? > > > > > Bisect your customizations to see which part takes the lion's share > of > > > the time, I'd say. > > > > It was my fault. I bisected different commits (using mercurial) > > > > My configuration script was > > > > > > ./configure CFLAGS='-O0 -g3' --enable-checking='yes,glyphs' > --enable-check-lisp-object-type --prefix=/opt/emacs27 > --with-x-toolkit=athena --with-mailutils > > OK, an unoptimized build is expected to be about 2.5 to 3 times slower > than the optimized one. > > --000000000000db56150590041085 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When compiling emacs for daily use is it better to compil= e with -O? Or without -O at all?
Which optimization level = is suggested?

On Tue, Aug 13, 2019, 17:29 Eli Zaretskii <eliz@gnu.org> wrote:
> From: Uwe Brauer <oub@mat.ucm.es>
> Date: Tue, 13 Aug 2019 12:51:33 +0200
>
>=C2=A0 =C2=A0 >> | Version=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 | init file | without init |
>=C2=A0 =C2=A0 >> |------------------------------------------+----= -------+--------------|
>=C2=A0 =C2=A0 >> | b06917a4912a60402025286d07d4a195749245c4 | 50 = sec=C2=A0 =C2=A0 | 1-2 sec=C2=A0 =C2=A0 =C2=A0 |
>=C2=A0 =C2=A0 >> | 1d75604eaded6a8482d28d57bc8e6a4d99d5caee | 15 = sec=C2=A0 =C2=A0 | 1-2 sec=C2=A0 =C2=A0 =C2=A0 |
>=C2=A0 =C2=A0 >>
>=C2=A0 =C2=A0 >> #+end_src
>=C2=A0 =C2=A0 >>
>=C2=A0 =C2=A0 >>
>=C2=A0 =C2=A0 >> Any idea whats up?
>=C2=A0 =C2=A0 >>
>=C2=A0 =C2=A0 >> How can I debug this?
>
>=C2=A0 =C2=A0 > Bisect your customizations to see which part takes t= he lion's share of
>=C2=A0 =C2=A0 > the time, I'd say.
>
> It was my fault. I bisected different commits (using mercurial)
>
> My configuration script was
>
>
> ./configure CFLAGS=3D'-O0 -g3' --enable-checking=3D'yes,gl= yphs' --enable-check-lisp-object-type --prefix=3D/opt/emacs27 --with-x-= toolkit=3Dathena --with-mailutils

OK, an unoptimized build is expected to be about 2.5 to 3 times slower
than the optimized one.

--000000000000db56150590041085--