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!news1.google.com!proxad.net!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Various Language Architecture Questions Date: Mon, 26 Sep 2005 23:07:06 +0200 Message-ID: <87oe6fzgg5.fsf@mid.deneb.enyo.de> References: <1127615832.540718.246970@g43g2000cwa.googlegroups.com> <1lj1ewtykmmp4.j6srtz43enc4.dlg@40tude.net> <1127652977.471484.203180@g47g2000cwa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: albireo.enyo.de 1127768851 22326 212.9.189.177 (26 Sep 2005 21:07:31 GMT) X-Complaints-To: Cancel-Lock: sha1:9WvlP8Mj/ehbgFWAWiAm/WxVIqQ= Xref: g2news1.google.com comp.lang.ada:5167 Date: 2005-09-26T23:07:06+02:00 List-Id: * Maciej Sobczak: > frankgerlach@gmail.com wrote: > >> Whatabout the following examples: >> 1.) Simple,unportabe Network Data Transport: To transport a C struct, I >> just cast it to char* and then write sizeof(myStruct) bytes to the >> Socket. This is very fast and works in a homogeneous network. > > 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).