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,718bd701b6b36346 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-13 01:25:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: GNAT/Ada95 Streams Performance Issue Date: 13 Aug 2002 01:25:56 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0208130025.41805ea8@posting.google.com> References: <3D51ECC9.8020406@cogeco.ca> <3D585F63.6010205@otelco.net> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1029227157 28621 127.0.0.1 (13 Aug 2002 08:25:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 Aug 2002 08:25:57 GMT Xref: archiver1.google.com comp.lang.ada:27971 Date: 2002-08-13T08:25:57+00:00 List-Id: Larry Hazel wrote in message news:<3D585F63.6010205@otelco.net>... > Somewhere around 1990, I wrote a simple file copy program > using Sequential_IO on > files of bytes. Note that there is no portable way of doing this in either Ada 83 or Ada 95. In practice, instantiating SIO for type Character would probably work. > This was using the Verdix Ada 83 compiler on a Sun. I > did this as a test because C people kept telling me how > slow Ada was. I wanted to see for myself. > It was consistently faster than the unix cp command. Hard to believe, and if true, simply a comment on a truly appalling implementation of cp. > I suspect there was a > lot of buffering going on behind the scenes. That's not enough to account for this surprising result!