all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: emacs-devel@gnu.org
Subject: Re: Default compiler optimization level for building dev sources
Date: Fri, 22 Apr 2016 17:40:28 +0300	[thread overview]
Message-ID: <8360v9671f.fsf@gnu.org> (raw)
In-Reply-To: <87lh45vib7.fsf@wanadoo.es> (message from Óscar Fuentes on Fri, 22 Apr 2016 16:17:48 +0200)

> From: Óscar Fuentes <ofv@wanadoo.es>
> Date: Fri, 22 Apr 2016 16:17:48 +0200
> 
> I'm using Emacs 25.0.92 on Windows and it seems remarkably slower than
> the previous binary. This one was built with a plain config && make
> while the previous one had CFLAGS set to -O3 and other extra
> optimization flags.

So you are saying that -O2 (that's the default) is significantly
slower than -O3?  That's strange, my experience is that -O3 is
generally not faster than -O2 and sometimes slower.

> Maybe the build does not turn on optimizations when it detects that the
> sources are on a repo. Sorry for asking here instead of checking it
> myself but today I have no access to the sources nor the web.

I don't think so.  The default is -O2, so if you want -O3, you need to
request it by saying "CFLAGS='-O3' ./configure ...".

Do you still have the source directory tree where you b uilt the
previous binary?  If so, please tell what configure-time switches you
used and which compiler switches do you see in src/Makefile.



  reply	other threads:[~2016-04-22 14:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-22 14:17 Default compiler optimization level for building dev sources Óscar Fuentes
2016-04-22 14:40 ` Eli Zaretskii [this message]
2016-04-22 15:00   ` Óscar Fuentes
2016-04-22 17:56 ` John Wiegley
2016-04-22 18:40   ` Eli Zaretskii
2016-04-22 18:53   ` Andreas Schwab
2016-04-22 20:18   ` Óscar Fuentes
2016-04-22 20:25     ` John Mastro
2016-04-22 20:41       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8360v9671f.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ofv@wanadoo.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.