From: Larry Hazel <lhhazel@otelco.net>
Subject: Re: GNAT/Ada95 Streams Performance Issue
Date: Tue, 13 Aug 2002 08:45:36 -0500
Date: 2002-08-13T08:45:36-05:00 [thread overview]
Message-ID: <3D590D80.201@otelco.net> (raw)
In-Reply-To: 5ee5b646.0208130025.41805ea8@posting.google.com
Robert Dewar wrote:
> Larry Hazel <lhhazel@otelco.net> 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!
Robert,
After reading your reply and trying to remember what I did, I think the byte SIO
program was the first attempt and not very fast. I vaguely remember doing
something with direct io and large arrays of bytes for the program that was
faster than cp.
Larry
next prev parent reply other threads:[~2002-08-13 13:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3D51ECC9.8020406@cogeco.ca>
2002-08-12 15:09 ` GNAT/Ada95 Streams Performance Issue Waldek Hebisch
2002-08-12 23:49 ` Robert Dewar
2002-08-14 14:53 ` Waldek Hebisch
2002-08-13 1:22 ` Larry Hazel
2002-08-13 8:25 ` Robert Dewar
2002-08-13 13:45 ` Larry Hazel [this message]
2002-08-13 21:11 ` Robert Dewar
2002-08-14 8:58 ` Lutz Donnerhacke
2002-08-14 15:46 Mike Brenner
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox