Re: Various Language Architecture Questions



Simon Wright <simon@xxxxxxxxxxxx> wrote:
>Florian Weimer <fw@xxxxxxxxxxxxx> 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?

In some circumstances you might want to know that, for example when
transferring critical data over unreliable network. Of course the protocol
must understand resuming. But still this does not mean that stream elements
must be written one by one (I suppose this is the problem why stream I/O
is slow). read(2), write(2) and scatter-gather I/O (POSIX) functions can
return the number of bytes transmitted even though they are fast.

--
Tapio
.



Relevant Pages

  • Re: WMS source changing issue
    ... we use 5 second buffer in WMP. ... The question is - why the server is stopping broadcasting for a while (it ... clearly seen in network statistic in Task Manager) when switching to file ... We're streaming one 5Mbps live stream and one 5Mbps CBR file periodically so ...
    (microsoft.public.windowsmedia.server)
  • Re: streaming video problems!
    ... Internet when you're playing from the same network. ... windows media player will open up, ... So are you watching the stream within your ...
    (microsoft.public.windowsmedia.encoder)
  • Re: Welcome to the future of radio
    ... It's great to welcome you today Mr Audio Quality and Mr Bit Rates, ... This means that traffic will count twice: one for the stream to you and a second time for the stream from you to another listener. ... In Brussels clearwire had to stop accepting new customers as their network gets saturated and adding new customers could break the network for their existing customers). ... If that changes (e.g. as you a connection to put a internet-café behind it instead of normal residential users or people start to use applications that have a different traffic-pattern), this can completely screw up the network design and the economic foundation of your network. ...
    (alt.radio.digital)
  • Re: mini ITX Satellite PVR
    ... alterative channels? ... It has built in 10/100 ethernet so you could either save to a server or just pull the files off to a networked PC. ... it has a web interface and can stream TV across the network. ...
    (uk.rec.motorcycles)
  • Re: Network source filter
    ... for mpeg2 transport stream. ... burst [yet to check on network driver]. ... I wrote a network push filter from scratch,base classes used CSource ... The buffers are dispatched out in FillBuffer call. ...
    (microsoft.public.win32.programmer.directx.video)