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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,95c23095599677a5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-22 09:00:07 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!skynet.be!newsfeed.skycache.com!Cidera!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: Optimization Question Date: Mon, 22 Jan 2001 16:48:02 GMT Organization: Deja.com Message-ID: <94ho80$pj7$1@nnrp1.deja.com> References: <94ftfu$b59$1@nnrp1.deja.com> <94g431$ge3$1@nnrp1.deja.com> <94hjbp$ks6$1@nnrp1.deja.com> <94hm5q$nmc$1@nnrp1.deja.com> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Mon Jan 22 16:48:02 2001 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; 0.7) Gecko/20010109 X-Http-Proxy: 1.0 x67.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:4318 Date: 2001-01-22T16:48:02+00:00 List-Id: In article <94hm5q$nmc$1@nnrp1.deja.com>, Robert Dewar wrote: > In article <94hjbp$ks6$1@nnrp1.deja.com>, > Ted Dennison wrote: > > > My first iteration took the dumb approach and used Direct_IO > > instantiated on bytes. > > This of course is even *WORSE* than using sequential_io, since > there is extra positioning overhead. I can't imagine why you > would choose Direct_IO for what is obviously a sequential > problem. Just shows that if there is a way to abuse things > someone will take advantage of it :-) :-) :-) I used Direct_IO because for my purpose (splitting the file into chunks that will fit on the floppy), I needed to know how big the file actually is. Direct_IO has a length-of-file routine (Size), while Sequential_IO does not. I suppose I could have used Direct_IO just for that purpose and Sequential_IO for the actual IO operations. But that seemed a little silly when Direct_IO also had all the operations I needed. So are you saying that the versions of Read and Write in Direct_IO that don't have the "Positive_Count" typed parameters still take longer than the routines with the exact same parameter profile in Sequential_IO? Not that it really matters that much. We've already ascertained that its going to be slow either way. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/