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,df17212a7a9dc5fd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-10 12:14:41 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Streams in GNAT 3.14p Date: 10 Jun 2002 12:14:41 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0206101114.4b8dfd2f@posting.google.com> References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1023736481 27022 127.0.0.1 (10 Jun 2002 19:14:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 10 Jun 2002 19:14:41 GMT Xref: archiver1.google.com comp.lang.ada:25692 Date: 2002-06-10T19:14:41+00:00 List-Id: Dmitry A.Kazakov wrote in message news:... > 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