Add TODO for false-sharing
This commit is contained in:
parent
4c1b82834b
commit
8b38cdaba1
|
@ -9,6 +9,9 @@ import (
|
|||
// Conn represents a single proxied TCP connection.
|
||||
type Conn struct {
|
||||
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…
Reference in New Issue