perlin-network / noise

A decentralized P2P networking stack written in Go.
https://godoc.org/github.com/perlin-network/noise
MIT License
1.78k stars 213 forks source link

Reduce AEAD allocations, and switched to using sync.Cond for reducing lock contention in clients. #277

Closed iwasaki-kenta closed 4 years ago

iwasaki-kenta commented 4 years ago

Shaved away an allocation in encryptAEAD, and switched to using sync.Cond for reducing lock contention in client.go when sending large amounts of messages with high flush latency.