Re: gen_udp:recv()
Max Lapshin <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <CAMxVRxDKGhSoN17ESguOijHqAGRn59izjuNB5OZRXY=rt8FFGA@mail.gmail.com> |
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 <[email protected]> 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 > [email protected] >