comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve" <nospam_steved94@attbi.com>
Subject: Re: Speeding up Ada procedure?
Date: Thu, 27 Feb 2003 03:22:27 GMT
Date: 2003-02-27T03:22:27+00:00	[thread overview]
Message-ID: <Tvf7a.274977$HN5.1168235@rwcrnsc51.ops.asp.att.net> (raw)
In-Reply-To: 1d13e1b4.0302261526.40058154@posting.google.com

If your indexes are of a type that is restricted to the range of the array
bounds, the compiler need not do a check on those bounds when indexing the
array.  Some compilers take advantage of this.

Steve
(The Duck)

"Papandopulo" <papand0pul0@yahoo.com> wrote in message
news:1d13e1b4.0302261526.40058154@posting.google.com...
> I have certain procedures dealing with
> large arrays which are potential performance
> bottlenecks. While they didn't cause
> performance problems yet I intuitively
> feel they will.
>
> Is it a way to remove runtime array
> bounds and other checks for particular
> procedure ?
>
> While Ada checks are excellent on
> control-type part of program where is
> a lot of logic and not much time spent
> it can become deadly if massive arrays
> of data are being processed.
>
> If the procedure just takes an array and
> produces an array I can be sure it's not
> faulty by testing it with different size
> arrays and than turning off runtime checks.
>
> That's my rationale.
>
> Thank you,
> George





  parent reply	other threads:[~2003-02-27  3:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-26 23:26 Speeding up Ada procedure? Papandopulo
2003-02-27  0:30 ` Hyman Rosen
2003-02-27  0:39 ` tmoran
2003-02-27  3:22 ` Steve [this message]
2003-02-27  8:38 ` Gautier
2003-02-27  8:48   ` Duncan Sands
2003-02-27  8:54 ` Jean-Pierre Rosen
2003-02-27 15:45 ` Mark Johnson
2003-02-27 22:57   ` John R. Strohm
2003-02-28 14:33     ` Mark Johnson
2003-02-27 18:43 ` Alfred Hilscher
2003-02-27 22:55 ` John R. Strohm
replies disabled

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