comp.lang.ada
 help / color / mirror / Atom feed
From: "(see below)" <yaldnif.w@blueyonder.co.uk>
Subject: Re: Performance of access type : a tiny mistake in the WikiBook ?
Date: Thu, 08 Oct 2009 01:30:06 +0100
Date: 2009-10-08T01:30:06+01:00	[thread overview]
Message-ID: <C6F2F11E.1275C5%yaldnif.w@blueyonder.co.uk> (raw)
In-Reply-To: 31da5154-9739-4ead-8437-aaa5d70dc7e8@h30g2000vbr.googlegroups.com

On 08/10/2009 00:30, in article
31da5154-9739-4ead-8437-aaa5d70dc7e8@h30g2000vbr.googlegroups.com, "Yannick
Duch�ne Hibou57" <yannick_duchene@yahoo.fr> wrote:

> Hi Bill, and thanks for your reply
> 
> On 8 oct, 00:38, "(see below)" <yaldni...@blueyonder.co.uk> wrote:
>> surely it should indicate the likely effect of the "not null"
>> and "access constant" options as well.
> That's a relevant comment indeed
> You're right with that point
> 
> I came into it because I'm seeking about common performance
> considerations. So I've found this article on WikiPedia.
> 
> I'm also seeking about informations on the average impact of inlined
> in generics. The same WikiBook states it has bad impact on
> performance, in the way it prevents the compiler from using code
> sharing. But I wonder if it applies only to the actually inlined
> methods or to the whole package.
> 
...

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




  reply	other threads:[~2009-10-08  0:30 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) [this message]
2009-10-08  0:48       ` Yannick Duchêne Hibou57
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