Non-blocking UDP calls using std.socket
Andre Artus via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Dec 17 01:37:46 PST 2014
-- snip --
>
> Have you looked at vibe.d?
> https://github.com/rejectedsoftware/vibe.d/blob/master/examples/udp/source/app.d
Thanks Rikki,
I saw that before, but I was left with the impression that its
doing blocking calls in a thread (which could very well be the
simplest answer). I'll give it a bash.
I wrote an equivalent program in C# using the asynch socket calls
and the Task Parallel Library and the result was at least a ten
fold speed increase. I would like to match, and preferably
better, that performance in a D program. I realize that the task
is predominantly network bound so D doesn't get much of its
native advantage.
More information about the Digitalmars-d-learn
mailing list