comp.lang.ada
 help / color / mirror / Atom feed
From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: GNAT/Ada95 Streams Performance Issue
Date: Wed, 14 Aug 2002 08:58:37 +0000 (UTC)
Date: 2002-08-14T08:58:37+00:00	[thread overview]
Message-ID: <slrnalk6ts.oj.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 5ee5b646.0208131311.735b9993@posting.google.com

* 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.

Sorry, don't take this to serious:

...
   function copy (
     in_fd, out_fd : OS_File_T;
     offset        : access OS_Off_T;
     count         : OS_Size_T
   ) return OS_SSize_T;
   pragma Import(C, copy, "sendfile");
   offset : aliased OS_Off_T := OS_Off_T'First;
   send   : OS_SSize_T :=
     copy (in_fd, out_fd, offset'Access, OS_Size_T'Last);
begin
   if send = -1 then
      Put_Line ("Error ...");
   else
      Put_Line ("Copied" & OS_SSize_T'Image (send) & " Bytes.");
   end if;
end;   



  reply	other threads:[~2002-08-14  8:58 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
2002-08-13 21:11         ` Robert Dewar
2002-08-14  8:58           ` Lutz Donnerhacke [this message]
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