4811236189
context.cancelCtx.Done involves a mutex and isn't as cheap as I previously assumed. Convert the donec method into a struct field and store the channel value once. Our one magicsock.Conn gets one pointer larger, but it cuts ~1% of the CPU time of the ReceiveFrom benchmark and removes a bubble from the --svg output :) |
||
---|---|---|
.. | ||
discopingpurpose_string.go | ||
legacy.go | ||
magicsock.go | ||
magicsock_test.go |