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!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!cyclone.swbell.net!cyclone-sf.pbi.net!216.218.192.242!news.he.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: Tue, 27 Sep 2005 05:31:32 +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> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1127795491 25548 62.49.19.209 (27 Sep 2005 04:31:31 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 27 Sep 2005 04:31:31 +0000 (UTC) Cancel-Lock: sha1:zOIw3Vymp2diQ88HKB0jgtgdb2w= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:5172 Date: 2005-09-27T05:31:32+01:00 List-Id: Florian Weimer writes: > * Maciej Sobczak: >> I guess that the time spent on the protocol stack and in all the network >> equipment is much bigger than what is needed to construct a correct >> packet, > > 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. If the stream runs out of room or gets closed by peer I'm not sure that I care exactly how many bytes got sent, do I?