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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d4226ffde2290b0c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!s15g2000yqs.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: Performance of the Streams 'Read and 'Write Date: Mon, 2 Nov 2009 14:16:30 -0800 (PST) Organization: http://groups.google.com Message-ID: <8a4b958f-1660-49fc-a286-33879341ed3e@s15g2000yqs.googlegroups.com> References: <4aea5f3b$0$6593$9b4e6d93@newsspool3.arcor-online.net> <715d78f4-9b01-4598-88c1-6fc202983bae@p35g2000yqh.googlegroups.com> NNTP-Posting-Host: 81.62.35.123 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1257200190 1911 127.0.0.1 (2 Nov 2009 22:16:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 2 Nov 2009 22:16:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s15g2000yqs.googlegroups.com; posting-host=81.62.35.123; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.27 Safari/532.0,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8948 Date: 2009-11-02T14:16:30-08:00 List-Id: On 2 nov, 22:37, "Randy Brukardt" wrote: > IMHO, Ada compilers should do that. (There's specifically a permission to do > this optimization in Ada 2005: 13.13.2(56/2).) Excellent news! > That's an intergral part of > the stream attribute implementation on Janus/Ada. (Disclaimer: the entire > stream attribute implementation on Janus/Ada doesn't work right, quite > probably because it is too complicated. So perhaps there is a reason that > other Ada compilers don't do that. :-) Note, however, that it is pretty rare > that you could actually do that (only about 15% of the composite types I've > seen in Janus/Ada would qualify). Sure - but imagine that these 15% might transport 95% of the information. It could happen, couldn't it ? And if type T qualifies, a record type R with fields of types T,U,V (U and V not qualifying) will be also transmitted faster, an array of R will also go faster, and so on... > So I'm not surprised that implementers > have left that capability out in favor of things that happen more often. I am not surprised either... Gautier