From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,22d1652a85f14a1e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-26 19:22:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!bos-service1.ext.raytheon.com!cambridge1-snf1.gtei.net!nycmny1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.gtei.net!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <1d13e1b4.0302261526.40058154@posting.google.com> Subject: Re: Speeding up Ada procedure? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 12.211.13.75 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc51.ops.asp.att.net 1046316147 12.211.13.75 (Thu, 27 Feb 2003 03:22:27 GMT) NNTP-Posting-Date: Thu, 27 Feb 2003 03:22:27 GMT Organization: AT&T Broadband Date: Thu, 27 Feb 2003 03:22:27 GMT Xref: archiver1.google.com comp.lang.ada:34642 Date: 2003-02-27T03:22:27+00:00 List-Id: 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" 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