Browse Source

Add TODO for false-sharing

pull/4275/head
Paul Banks 7 years ago committed by Mitchell Hashimoto
parent
commit
67af5c740b
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
  1. 5
      connect/proxy/conn.go

5
connect/proxy/conn.go

@ -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…
Cancel
Save