mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 15:22:30 +00:00
Mark RTCP buffer Write as noinline. (#4138)
Seeing a bunch of objects in ReadStreamSRTP.write which does not make a lot of sense as the function does not allocate anything (https://github.com/pion/srtp/blob/8fe528a0c4ebb5c46d40a9fd5b77e5b6655fa919/stream_srtp.go#L68-L77) RTP buffer was marked noinline in an easrlier PR. Marking RTCP buffer write also as noinline to check if heap reporting changes.
This commit is contained in:
1 parent
ea9b217738
commit
1c1a836c3c
1 file changed
+1
@@ -31,6 +31,7 @@ func NewRTCPReader(ssrc uint32) *RTCPReader {
|
||||
return &RTCPReader{ssrc: ssrc}
|
||||
}
|
||||
|
||||
//go:noinline
|
||||
func (r *RTCPReader) Write(p []byte) (n int, err error) {
|
||||
if r.closed.Load() {
|
||||
err = io.EOF
|
||||
|
||||
Reference in new issue
Block a user