[go-nuts] How does embedding without some specific methods work?

2024-07-12 Thread William Tang
I’m reading the current implementation of io.Copy for TCPConn. It has a struct called tcpConnWithoutWriteTo 3 , which will cause the WriterTo casting from a io.Reader to fail 1

[go-nuts] High CPU usage with io.CopyBuffer

2024-07-15 Thread William Tang
I'm using k8s client-go to stream pod log to a websocket, but for some reason, the CPU usage is 100% on two thread. pprof indicates most of the time were spent on interface casting (see attachment for the pprof file) and strace reported hugh number of SIGURG signals: 12futex(0xc00060c148, FU