mediocregopher / radix.v2

Redis client for Go
http://godoc.org/github.com/mediocregopher/radix.v2
MIT License
433 stars 92 forks source link

cluster: Unnecessary contention inside Put writing to respCh #83

Closed jameshartig closed 6 years ago

jameshartig commented 6 years ago

We're seeing an insignificant amount of time being spent waiting to write to respCh inside cluster's Put and it seems like this can easily be eliminated by making the respCh have a buffer. Since the cluster is limited by the speed of spin, this is causing hundreds of goroutines to be backed up waiting to write to callCh.