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