Quantcast
Channel: High udpclient CPU use - Code Review Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by almaz for High udpclient CPU use

Note that Endpoints.Contains(endpoint) will never be true, because you create a new IPEndPoint, and it does not implement IEquatable interface.In addition to @mjolka's description why you have a 50%...

View Article



Answer by mjolka for High udpclient CPU use

It's not surprising that CPU usage is at 50%, it looks like you're busy-waiting.while (Receive){ try { var readyChannels = ... foreach (var channel in readyChannels) { ... } } catch (Exception ex) {...

View Article

High udpclient CPU use

I have a bunch of different ports I want to listen on and the iterate over the available data to send to a Dataflow pipeline. In total I'm listening on 14 ports. I'm looking for any advice on how to...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images