comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: Performance of static array in record on GNAT / gcc 4.6
Date: Wed, 26 Dec 2012 16:15:34 +0100
Date: 2012-12-26T16:15:34+01:00	[thread overview]
Message-ID: <87ehic26ax.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: b4ce1811-f8b0-474c-a2e6-19688cb69185@googlegroups.com

> Before I do the measurement myself, I wondered whether someone else
> has already done it. Question: If I pass a record with two large,
> fixed size arrays with definite values to a procedure as in
> parameter, is there any performance penalty for accessing elements
> of the arrays inside the record and procedure as opposed to defining
> the arrays directly inside the procedure and without wrapping them
> into a record?

There shouldn't be a difference in performance.  You could verify this
by comparing the generated machine code.



      reply	other threads:[~2012-12-26 15:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-11 10:53 Performance of static array in record on GNAT / gcc 4.6 john
2012-12-26 15:15 ` Florian Weimer [this message]
replies disabled

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