3 ms·
I'm not sure what you are asking about specifically but in general it's important to remember that channels are a pretty thin abstraction around a mutex (and a
by kasey_junk 11y ago
I'm not sure what you are asking about specifically but in general it's important to remember that channels are a pretty thin abstraction around a mutex (and a buffer). There is nothing about that abstraction that would make you think it would be better for this use case than spinlocks and a lock free table, and quite a bit that would make you think it is much worse.
One of the first things people abandon when scaling golang servers is the channel abstraction and I expect the same would be true in this case.