gen_udp:recv()

Max Lapshin max.lapshin@REDACTED
Tue Apr 6 18:49:53 CEST 2021


Exactly.

We receive MPEG-TS _stream_ in multicast messages and it is very
painful to receive so many messages (it can be around 90K per second
totally or 300-900 per one stream per second) one by one. Reducing
this about by 10 decreases CPU usage a lot.




On Tue, Apr 6, 2021 at 6:31 PM Łukasz Niemier <lukasz@REDACTED> wrote:
>
> > Well, I like the idea to receive 20-200 UDP messages in a single
> > binary with separate structure holding mapping of this data.
>
> Then it sounds like you want stream protocol instead of packet protocol.
> The whole idea of packet protocol is to receive messages in packets.
>
> --
>
> Łukasz Niemier
> lukasz@REDACTED
>


More information about the erlang-questions mailing list