comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com (Ted Dennison)
Subject: Re: Streams in GNAT 3.14p
Date: 10 Jun 2002 12:14:41 -0700
Date: 2002-06-10T19:14:41+00:00	[thread overview]
Message-ID: <4519e058.0206101114.4b8dfd2f@posting.google.com> (raw)
In-Reply-To: ae295a$3b12g$1@ID-77047.news.dfncis.de

Dmitry A.Kazakov <mailbox@dmitry-kazakov.de> wrote in message news:<ae295a$3b12g$1@ID-77047.news.dfncis.de>...
> Hi!
> 
> Recently I found that GNAT 3.14p implementation of streams looks a bit 
> strange. When a tagged object is written (S'Class'Output), then 
> Write(Stream, Item) is called for each character of the external 
> representation of tag _separately_. For types declared in deeply nested 
> child packages it is about 100 separate calls.

That's the way String'Output (and any other array 'Output) works by
default. I suppose they could have optimized it for tag strings
without running afowl of the ARM, but it isn't horribly suprising that
they didn't.


-- 
T.E.D. 
Home     -  mailto:dennison@telepath.com (Yahoo: Ted_Dennison)
Homepage -  http://www.telepath.com/dennison/Ted/TED.html



  reply	other threads:[~2002-06-10 19:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-11  1:24 Streams in GNAT 3.14p Dmitry A.Kazakov
2002-06-10 19:14 ` Ted Dennison [this message]
2002-06-12  8:43   ` Dmitry A. Kazakov
2002-06-12 19:50     ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox