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,7e490a18b9688bd9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.59.38 with SMTP id w6mr1791448pbq.23.1316211503099; Fri, 16 Sep 2011 15:18:23 -0700 (PDT) Path: m9ni7780pbd.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Stream_Element_Array Date: Fri, 16 Sep 2011 23:18:21 +0100 Organization: A noiseless patient Spider Message-ID: References: <1e6rw4vto3ldb.i8d7fxixapx4.dlg@40tude.net> <28u4e86fk8gn$.ialexttobgr0$.dlg@40tude.net> <276b8d0a-5b3c-4559-a275-98620657cc2f@s30g2000pri.googlegroups.com> <01c12338-e9f8-49ab-863d-c8282be3875e@g31g2000yqh.googlegroups.com> <1esmml9qftomp.vihelaijmcar$.dlg@40tude.net> <02671fc7-5c38-42dc-8017-529f6dead8fd@j19g2000yqc.googlegroups.com> <631f3859-8118-4f4c-a684-152ee5f589bf@o15g2000vbe.googlegroups.com> <1ha21cmm4ub0x.1x5tkefenjm53$.dlg@40tude.net> <1agiqouo0byd0$.12u30ddt25czu$.dlg@40tude.net> <1ag8afgfoatci$.213fr4mlgqhr$.dlg@40tude.net> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="25132"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BXBn1ov0GVuIoLvMnQX7GH8kcKQZ0Gnw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:MW94q/E1j0gB8ccb+r4ENf3zQNc= sha1:NON3GGo2W4Wcfe9uJybGsMbQf44= Xref: news1.google.com comp.lang.ada:17994 Content-Type: text/plain; charset=us-ascii Date: 2011-09-16T23:18:21+01:00 List-Id: "Dmitry A. Kazakov" writes: > On Fri, 16 Sep 2011 18:20:09 +0100, Simon Wright wrote: > >> I certainly wouldn't expect any significant performance difference >> between UDP and TCP with no-delay. I suppose what's significant for you >> may not be for me. But very few system engineers IME appreciate the >> difference; and by the time you've eliminated out-of-order UDP packets >> you may have eaten the difference anyway. > > Exactly, whatever overhead TCP/IP might cause, it is one to pay anyway by > adding safety to UDP (sequence numbers, acknowledging, resending lost > packets, reordering packets etc). We are of one mind here, indeed someone who thought that was a good idea should also like the design of a project I worked on where heartbeat (keep-alive) messages were not only application-generated but also sent on a different socket from data messages. It took a lot of effort to persuade TPTB that TCP/IP channels are bidirectional. On the other hand, if you have a tracker radar reporting target positions every 2 ms (I'm making that number up) it probably won't matter if you miss one or two reports, so as long as you take care not to use an out-of-order report UDP might not be inappropriate.