3 ms·
how does this compare to tpl dataflow on performance? is a go channel kinda like c# bufferblock? are channels thread safe for multiple producers and multiple co
by mrblah 9y ago
how does this compare to tpl dataflow on performance? is a go channel kinda like c# bufferblock? are channels thread safe for multiple producers and multiple consumers writing to and taking from the same queue? i like the code sample.. very clean.
- kpocza 9y agoI haven't compared it to TPL Dataflow however made some pure performance measurements. The results are at the end of this: https://github.com/kpocza/GoSharp/blob/master/src/GoSharp.PerfTest/TaskRunner.cs https://github.com/kpocza/GoSharp/blob/master/src/GoSharp.Pe... Basically Go# can pass millions of messages in a second. And yes, a Go#/Go channel is similar to something like BufferBlock however both are designed to fit into different "ecosystem" and way of thinking. Go# channels are thread safe and have been designed to operate in parallel environment.