]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: use a waiting sync.Pool instead of a channel
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 2 Feb 2021 17:37:49 +0000 (18:37 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 2 Feb 2021 18:32:13 +0000 (19:32 +0100)
commit48460703229d73fbacdd0d6b0d0f01a54f7ce751
tree991cf63384f64b206b3c82dbbb15532c6f011d4a
parenta9f80d8c587df99c6e8f57704aef3fe1ac62d0db
device: use a waiting sync.Pool instead of a channel

Channels are FIFO which means we have guaranteed cache misses.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
device/alignment_test.go
device/device.go
device/pools.go
device/pools_test.go [new file with mode: 0644]