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-Thread: 103376,2cc84c0fee9046c0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!news.cs.univ-paris8.fr!feeder.news.heanet.ie!feed4.jnfs.ja.net!feed1.jnfs.ja.net!jnfs.ja.net!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Various Language Architecture Questions Date: Wed, 28 Sep 2005 21:43:37 +0100 Organization: Pushface Message-ID: References: <1127615832.540718.246970@g43g2000cwa.googlegroups.com> <1lj1ewtykmmp4.j6srtz43enc4.dlg@40tude.net> <1127652977.471484.203180@g47g2000cwa.googlegroups.com> <87oe6fzgg5.fsf@mid.deneb.enyo.de> <87oe6eoz40.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1127940216 8708 62.49.19.209 (28 Sep 2005 20:43:36 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 28 Sep 2005 20:43:36 +0000 (UTC) Cancel-Lock: sha1:DsnWvje5jF+oGTOSx0c93nQo4V4= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:5252 Date: 2005-09-28T21:43:37+01:00 List-Id: Florian Weimer writes: > * Simon Wright: > >>> Unfortunately, this is not true for some commonly used marshaling >>> schemes. Even Ada.Streams can be relatively slow (with long arrays >>> with small components, for example). >> >> I've never understood why this _has_ to be. You would have thought >> implementations could behave 'as if' to a large extent. > > Not unless this is explicitly specified because the number of calls is > observable in most cases. As would be the case if you had specified TCP_NODELAY, of course! (or, worse, are using UDP). We stream to an in-memory stream and then send the contents to the socket in one chunk.