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,d89e2d213646aec8 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!news-peer1!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Mneson announcement and help request Date: Fri, 4 Jun 2004 05:55:28 +0000 (UTC) Organization: BT Openworld Message-ID: References: <-NSdneXjh7wndyLdRVn-vw@megapath.net> NNTP-Posting-Host: host81-152-56-112.range81-152.btcentralplus.com X-Trace: hercules.btinternet.com 1086328528 8055 81.152.56.112 (4 Jun 2004 05:55:28 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Fri, 4 Jun 2004 05:55:28 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Xref: g2news1.google.com comp.lang.ada:1086 Date: 2004-06-04T05:55:28+00:00 List-Id: "Randy Brukardt" wrote in message news:-NSdneXjh7wndyLdRVn-vw@megapath.net... > My point was that as long as you keep the exception handler and raising out > of the loop (which is certainly true for EOF), it can be quite efficient. In > the normal case (where you read many characters before reaching the end of > the file), it's almost always better to handle the exception. That's because > one exception raise/handling pair is a lot cheaper than 10,000 function > calls, especially one as expensive as EOF. I think we're in 'violent agreement' :-)