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-Thread: 103376,8de7eedad50552f1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Mon, 21 Mar 2005 15:29:24 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <87vf7n5njs.fsf@code-hal.de> <87u0n6mzas.fsf@code-hal.de> <2huslr9uto15$.nbw7z2uaceua.dlg@40tude.net> Subject: Re: Ada bench Date: Mon, 21 Mar 2005 15:31:45 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-RSaBiLpe0wnVpValBvo3pp6mAPhha7j7veaVYN7Z12geH9rui2MC7e/TklnXLEA6bH81su+8fsBm+f3!bK+EefjoiRQHN7tPZzBWQyM07U/388UcBl9J4IGYT80VaqTwHwbi+DSIlZYdiQVkhKL+wAdU3Org X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:9694 Date: 2005-03-21T15:31:45-06:00 List-Id: "Ed Falis" wrote in message news:opsnyydgl25afhvo@localhost... > You neglected two things: > > 1. suppress checks: -gnatp > 2. Use the end of file function instead of the exception. I'm curious why you would say that. End_of_File has dismal performance in Ada (because of the requirements on line and page terminators), and it should be avoided anytime performance is important. Indeed, our coding standards specifically say to avoid this function in favor of handling End_Error. Of course, handling the exception inside the main loop would also be pretty expensive. Unless there is some requirement *not* to use exceptions, avoid End_of_File. Randy.