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-26 16:30:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!chi1.webusenet.com!news.webusenet.com!cyclone1.gnilink.net!spamkiller.gnilink.net!nwrddc04.gnilink.net.POSTED!53ab2750!not-for-mail From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030131 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Speeding up Ada procedure? References: <1d13e1b4.0302261526.40058154@posting.google.com> In-Reply-To: <1d13e1b4.0302261526.40058154@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 27 Feb 2003 00:30:12 GMT NNTP-Posting-Host: 162.83.250.239 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc04.gnilink.net 1046305812 162.83.250.239 (Wed, 26 Feb 2003 19:30:12 EST) NNTP-Posting-Date: Wed, 26 Feb 2003 19:30:12 EST Xref: archiver1.google.com comp.lang.ada:34636 Date: 2003-02-27T00:30:12+00:00 List-Id: Papandopulo wrote: > it can become deadly if massive arrays of data are being processed That depends a lot on your pattern of usage. In many cases, the compiler can eliminate checks by "proving" to itself that they can never fail. Or it may hoist checks outside loops. I would suggest that you ignore your intuition, and only try to fix things once you have measured and know for a fact that the index checks are a problem.