mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
Add TODO for false-sharing
This commit is contained in:
parent
e112386426
commit
67af5c740b
@ -8,7 +8,10 @@ import (
|
||||
|
||||
// Conn represents a single proxied TCP connection.
|
||||
type Conn struct {
|
||||
src, dst net.Conn
|
||||
src, dst net.Conn
|
||||
// TODO(banks): benchmark and consider adding _ [8]uint64 padding between
|
||||
// these to prevent false sharing between the rx and tx goroutines when
|
||||
// running on separate cores.
|
||||
srcW, dstW countWriter
|
||||
stopping int32
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user