google / fchan-go

Experimental channel implementation
Apache License 2.0
311 stars 23 forks source link

Relation to Disruptor pattern? #2

Open samuell opened 7 years ago

samuell commented 7 years ago

I was wondering if you are using, or are aiming to make use of the principles in the disruptor pattern? (FWIW, there's a simplistic implementation in Go, of something like this, utilising a ring-buffer to get 6x speedup over plain channels)

ezrosent commented 7 years ago

This looks cool! Thanks for the links. When I get the chance I'll add these into the benchmarks (comparing Go to Go and Rust to any C/C++ implementations that may exist). Keep in mind that there a few senses in which these aren't apples-to-apples comparisons:

Does that sound reasonable to you?

P.S: The Rust implementation I'm talking about isn't the one on the rust_impl branch right now; but it will be posted soon.

samuell commented 7 years ago

Many thanks for the detailed explanations @ezrosent

I'm really quite new to all of this. Still learning.