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.1 required=5.0 tests=BAYES_00,FAKE_REPLY_C, MAILING_LIST_MULTI,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,718bd701b6b36346 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-14 08:47:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: Mike Brenner Newsgroups: comp.lang.ada Subject: Re: GNAT/Ada95 Streams Performance Issue Date: Wed, 14 Aug 2002 11:46:31 -0400 Organization: none Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1029340022 89731 137.194.161.2 (14 Aug 2002 15:47:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 14 Aug 2002 15:47:02 +0000 (UTC) Return-Path: X-Mailer: Mozilla 4.79 [en]C-20020130M (Windows NT 5.0; U) X-Accept-Language: en Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:28024 Date: 2002-08-14T11:46:31-04:00 Hi, An Ada program that copies a text file from standard input to standard output using streams would be a very useful example to post. I don't know how to do it because I don't know how to connect a TEXT_stream to standard input using the standard Ada stream packages. Mike Robert Dewar wrote: > That certainly makes more sense. The trouble is of course > that with Direct_IO you can't deal nicely with the last > partial block (you are also depending very much on impl > dependent choices in how Direct_IO works). > > Stream_IO should have the speed advantage without these > disadvantages. Larry Hazel wrote in message news:<3D590D80.201@otelco.net>... >> ... something with direct io and large arrays of bytes >> for the program that was faster than cp.