comp.lang.ada
 help / color / mirror / Atom feed
From: hebisch@math.uni.wroc.pl (Waldek Hebisch)
Subject: Re: GNAT/Ada95 Streams Performance Issue
Date: 14 Aug 2002 14:53:59 GMT
Date: 2002-08-14T14:53:59+00:00	[thread overview]
Message-ID: <ajdqu7$b2a$1@panorama.wcss.wroc.pl> (raw)
In-Reply-To: 5ee5b646.0208121549.6840b712@posting.google.com

Robert Dewar (dewar@gnat.com) wrote:
: hebisch@math.uni.wroc.pl (Waldek Hebisch) wrote in message news:<aj8j3t$bmn$1@panorama.wcss.wroc.pl>...

: >         loop
: >                 Ada.Text_IO.Get_Line( Line, Last );
: >                 Ada.Text_IO.Put_Line( Line(1..Last) );
: >         end loop;

: This is nothing *like* a "raw cat" program, it has quite
: subtle semantics that you likely do not intend :-)

The goal is NOT to copy files, it is just a skeleton for a 
program which works with a file line-by-line. I know that 
the program mishandles long lines, and that Ada treats control 
chars differently then C. Is there anything more subtle going 
on? And is there a better standard way to read a line?

I find it somewhat disturbing that reading a line take more 
CPU time then simple processing. 
--
                              Waldek Hebisch
hebisch@math.uni.wroc.pl    or hebisch@hera.math.uni.wroc.pl 



  reply	other threads:[~2002-08-14 14:53 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 [this message]
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
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