comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Does ObjectAda optimize at all??
Date: 1998/08/16
Date: 1998-08-16T00:00:00+00:00	[thread overview]
Message-ID: <dewar.903282165@merv> (raw)
In-Reply-To: 6r2a41$prp$1@nnrp1.dejanews.com

T.E.D. says

<<However, if ObjectAda doesn't do variable optimization, loop unrolling,
subprogram inlining, etc., then these folks are right to do this, even though
they drasticly worsen the maintainability of the code. That is why I think it
is a disservice to your customers to not provide optimizations, even if they
never specificly ask for them.
>>

In my experience, programmers often do not know enough to know whether
such manual optimizations help or hurt. They often end up not only
trashing the code, but also making it run nmore slowly. For example,
it takes a careful analysis of icache usage to know whether loop
unrolling is helpful.

At the very least, you shoudl only indulge in this kind of low level
optimziation of your coded if (a) profiling shows that there is a
potential for improvement and (b) testing shows the change is in fact helpful





  parent reply	other threads:[~1998-08-16  0:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-06  0:00 Does ObjectAda optimize at all?? dennison
1998-08-06  0:00 ` Jerry van Dijk
1998-08-07  0:00   ` dennison
1998-08-07  0:00 ` Tarjei Tj�stheim Jensen
1998-08-07  0:00   ` Robert Dewar
1998-08-09  0:00 ` Dave Wood
1998-08-10  0:00   ` dennison
1998-08-14  0:00     ` Tom Moran
1998-08-14  0:00       ` dennison
1998-08-15  0:00         ` Larry Kilgallen
1998-08-17  0:00           ` dennison
1998-08-15  0:00         ` Tom Moran
1998-08-14  0:00           ` Steve Doiel
1998-08-16  0:00         ` Tom Moran
1998-08-16  0:00         ` Robert Dewar [this message]
1998-08-17  0:00           ` dennison
  -- strict thread matches above, loose matches on Subject: below --
1998-08-22  0:00 dewar
replies disabled

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