From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: GNAT, aggregates and efficiency (Was: Use aggregates)
Date: Tue, 12 May 2009 07:58:42 +0200
Date: 2009-05-12T07:58:42+02:00 [thread overview]
Message-ID: <ygews8mvp4d.fsf_-_@sparre-andersen.dk> (raw)
In-Reply-To: 8a88003e-b3d4-4e6f-8bff-bb993c6e540f@s20g2000vbp.googlegroups.com
<simon.j.wright@mac.com> wrote:
> Someone recently found it was quicker to test an array for some
> condition by looping through it rather than by comparing with an
> aggregate [eg X = (others => 0)]. I had naively assumed that GNAT
> would just do the comparisons of the elements of X against 0, as the
> hand-crafted loop does, rather than construct a whole array of zeros
> on the stack and then loop through that ...
With which command line arguments and aggregate sizes is this the
case?
Greetings,
Jacob
PS: Never make premature local optimization!
--
"If I have to choose between two evils, I choose the one I
haven't tried before."
next prev parent reply other threads:[~2009-05-12 5:58 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-11 10:23 Allocation question Olivier Scalbert
2009-05-11 10:38 ` Georg Bauhaus
2009-05-11 10:40 ` Ludovic Brenta
2009-05-11 12:14 ` Olivier Scalbert
2009-05-11 12:18 ` Ludovic Brenta
2009-05-11 13:01 ` Olivier Scalbert
2009-05-11 12:26 ` Jacob Sparre Andersen
2009-05-11 13:27 ` Ludovic Brenta
2009-05-11 10:51 ` Use aggregates (Was: Allocation question) Jacob Sparre Andersen
2009-05-11 11:46 ` Olivier Scalbert
2009-05-11 12:16 ` Ludovic Brenta
2009-05-11 21:26 ` sjw
2009-05-12 5:58 ` Jacob Sparre Andersen [this message]
2009-05-12 18:57 ` GNAT, aggregates and efficiency (Was: Use aggregates) sjw
2009-05-12 7:47 ` Use aggregates (Was: Allocation question) Martin
2009-05-12 10:24 ` Brian Drummond
2009-05-12 11:07 ` Georg Bauhaus
2009-05-12 11:14 ` Georg Bauhaus
2009-05-12 21:18 ` Randy Brukardt
2009-05-13 16:38 ` Martin
2009-05-13 20:38 ` Randy Brukardt
2009-05-14 10:48 ` Martin
2009-05-12 9:13 ` Emacs Stephen Leake
2009-05-12 9:38 ` Emacs Ludovic Brenta
2009-05-12 9:46 ` Emacs Olivier Scalbert
2009-05-11 10:57 ` Allocation question Philipp Riegger
2009-05-11 12:18 ` Georg Bauhaus
2009-05-11 12:36 ` Philipp Riegger
2009-05-11 23:32 ` Brian Drummond
2009-05-12 1:09 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox