ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] компиляция с использованием параметров оптимизации
Date: Thu, 29 Sep 2005 03:52:23 +0400
Message-ID: <20050928235223.GA32714@basalt.office.altlinux.org> (raw)
In-Reply-To: <20050928234426.GN3831@solemn.turbinal.org>

[-- Attachment #1: Type: text/plain, Size: 1174 bytes --]

On Thu, Sep 29, 2005 at 03:44:27AM +0400, Alexey Tourbin wrote:
> On Wed, Sep 28, 2005 at 12:21:13PM +0300, Led wrote:
> > > медленно). С -O3 собиратся будет раза в два медленнее, но и работать будет
> > > быстрее.
> 
> Не будет.
> 
> > Тут есть ньюансы:) Бывают случаи (логически объяснимые), когда сборка с -Os 
> > получается самым быстрым вариантом:)
> 
> Таких случаев больше половины.  Логическое объяснение -- кеш
> у процессоров не резиновый.  -O3 может дать небольшой прирост
> производительности на интенсивных математических вычислениях,
> но для типичного кода, который "скачет" по библиотекам и часто
> делает системные вызовы, раскрутка циклов и т.п. заметно портит дело.
> 
> Перл и все перловые модули сейчас собираются с -Os.  Я когда-то
> профилировал, по сравнение с -O2 выигрыш примерно 7%.
> 
> Короче, лучше не париться, %optflags сойдёт.

Общее правило такое:

До тех пор, пока вы сами либо те, кому вы доверяете, не выполнили
сравнение производительности данного конкретного исполняемого файла,
собранного с использованием разных параметров оптимизации, для сборки
этого файла следует использовать %optflags.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-09-28 23:52 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-27  5:41 ` [sisyphus] OpenOffice.org 1.1.4 black icons Антон Горлов
2005-09-27  8:34   ` [sisyphus] [JT] " Yury Aliaev
2005-09-27  8:37     ` Антон Горлов
2005-09-27 10:01       ` Led
2005-09-27 10:07         ` Антон Горлов
2005-09-27 10:57       ` Igor Zubkov
2005-09-27 11:27         ` Led
2005-09-27 11:38           ` Igor Zubkov
2005-09-27 13:04             ` Антон Горлов
2005-09-27 13:14               ` Led
2005-09-27 20:28                 ` Igor Zubkov
2005-09-27 20:27               ` Igor Zubkov
2005-09-27 17:58             ` [sisyphus] " Konstantin A. Lepikhov
2005-09-27 20:29               ` Igor Zubkov
2005-09-27 13:02         ` [sisyphus] " Антон Горлов
2005-09-27 13:11           ` Led
2005-09-27 13:11             ` Антон Горлов
2005-09-27 13:15               ` Valery V. Inozemtsev
2005-09-27 13:22                 ` Led
2005-09-27 14:59                   ` [sisyphus] " Michael Shigorin
2005-09-27 15:06                     ` Led
2005-09-27 17:13                   ` [sisyphus] " Valery V. Inozemtsev
2005-09-27 20:13                 ` [sisyphus] " Arioch
2005-09-27 20:31               ` [sisyphus] " Igor Zubkov
2005-09-28  5:42                 ` Антон Горлов
2005-09-28  8:44                   ` Led
2005-09-28  8:52                     ` Антон Горлов
2005-09-28  8:53                   ` Igor Zubkov
2005-09-28  9:21                     ` Led
2005-09-28 23:44                       ` [sisyphus] " Alexey Tourbin
2005-09-28 23:52                         ` Dmitry V. Levin [this message]
2005-09-29 11:33                           ` [sisyphus] [wiki] Re: компиляция с использованием параметров оптимизации Michael Shigorin
2005-09-29 11:09                         ` [sisyphus] Re: [JT] OpenOffice.org 1.1.4 black icons Led
2005-09-29 11:26                           ` Arioch
2005-09-29 11:50                             ` Michael Shigorin
2005-09-29 12:35                             ` Led
2005-09-27 15:47         ` [sisyphus] " Andrey Rahmatullin
2005-09-27 20:29           ` Igor Zubkov
2005-09-28  2:21             ` Andrey Rahmatullin
2005-09-27 21:53         ` Motsyo Gennadi aka Drool
2005-09-27  8:35   ` Yury Aliaev
2005-09-27  5:50 ` [sisyphus] " Андрей Осипов
2005-09-27  8:58   ` Denis Ovsienko
2005-09-27  9:03     ` Valery V. Inozemtsev

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=20050928235223.GA32714@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@altlinux.ru \
    /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

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git