comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne Hibou57" <yannick_duchene@yahoo.fr>
Subject: Re: Performance of access type : a tiny mistake in the WikiBook ?
Date: Wed, 7 Oct 2009 17:48:56 -0700 (PDT)
Date: 2009-10-07T17:48:56-07:00	[thread overview]
Message-ID: <f4a9b321-7ab8-49e5-9fa1-373cf3553f5a@j9g2000vbp.googlegroups.com> (raw)
In-Reply-To: C6F2F11E.1275C5%yaldnif.w@blueyonder.co.uk

On 8 oct, 02:30, "(see below)" <yaldni...@blueyonder.co.uk> wrote:
> Do you have any solid reason to believe that such micromanagement has a
> significant effect on your program's performance? If it has, it might well
> be contrary to such generalized rules of thumb as the Wikibook propounds.
>
> I have a 14KSLOC program that runs three times as fast when I inline the
> appropriate (small, but heavily-used) subprograms.
>
> It runs *half* as fast if I replace the 3-statement body of one of these
> subprograms by 2 statements that seem "obviously" more efficient.
>
> The only way to answer such questions is to experiment with the
> alternatives, after you've done the really difficult stuff (i.e., getting it
> right, for now and for the foreseeable future), and then have a demonstrated
> need for better performance.
>
> --
> Bill Findlay
> <surname><forename> chez blueyonder.co.uk
I understand what you mean about testing, but I am mainly looking for
average answers. Just things to know and to have in mind. Even if
there is no required implementation, it is well known that a lot of
compilers share some common implementation designs. I'm seeking for
informations about it, just like the way I'm sometime reading about
general tips or thoughts (I used to do the same with some prior
languages like Pascal and Eiffel, it's a bit part of learning the
thing).



  reply	other threads:[~2009-10-08  0:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-07 20:59 Performance of access type : a tiny mistake in the WikiBook ? Hibou57 (Yannick Duchêne)
2009-10-07 22:38 ` (see below)
2009-10-07 23:30   ` Yannick Duchêne Hibou57
2009-10-08  0:30     ` (see below)
2009-10-08  0:48       ` Yannick Duchêne Hibou57 [this message]
2009-10-08  9:11         ` Dmitry A. Kazakov
2009-10-08  9:55         ` Gautier write-only
2009-10-08 16:04           ` Yannick Duchêne Hibou57
2009-10-08 16:46             ` Yannick Duchêne Hibou57
2009-10-08 19:41             ` Gautier write-only
2009-10-09  6:14               ` Yannick Duchêne Hibou57
2009-10-09 18:51                 ` sjw
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox