Buffered VS Unbuffered channels in go
· 4 min read
You’ve probably heard the phrase:
“Don’t communicate by sharing memory; instead, share memory by communicating.”
You’ve probably heard the phrase:
“Don’t communicate by sharing memory; instead, share memory by communicating.”
You spin up multiple threads in your Python code expecting blazing speed only to discover it runs just as slowly as the single-threaded version. Even worse, it sometimes performs worse. You check your CPU usage, and it’s as chilled as ever, barely breaking a sweat. What gives?