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:
Raja Subramanian authored and GitHub committed 2025-12-08 22:30:30 +05:30
1 parent ea9b217738
commit 1c1a836c3c
1 file changed
+1
+1
View File
@@ -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