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,FREEMAIL_FROM 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-27 00:38:52 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: gautier_niouzes@hotmail.com (Gautier) Newsgroups: comp.lang.ada Subject: Re: Speeding up Ada procedure? Date: 27 Feb 2003 00:38:51 -0800 Organization: http://groups.google.com/ Message-ID: <17cd177c.0302270038.440cde5@posting.google.com> References: <1d13e1b4.0302261526.40058154@posting.google.com> NNTP-Posting-Host: 213.173.163.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1046335132 26872 127.0.0.1 (27 Feb 2003 08:38:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 27 Feb 2003 08:38:52 GMT Xref: archiver1.google.com comp.lang.ada:34654 Date: 2003-02-27T08:38:52+00:00 List-Id: Papandopulo: > 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 ? There are pragmata suppress (standard) and it is meaningful to apply them. What I do for number-crunching with big matrices is to compile the whole with two different option sets 1/ a "debug" without suppressing anything, no optimization and eventual compiler-dependent extra checks 2/ a "compute" one with suppress_all, plus all optimization goodies provided by the compiler, including loop-unrolling You can always add a few before-calculation explicit checks to verify data consistency, e.g. ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!