Removing one snapshot in down track. (#2047)

Profiling showed updating jitter going through the snapshot maps.
With the reduction of one, there should only be one snapshot
and hopefully that should gain some cycles back.
This commit is contained in:
Raja Subramanian
2023-09-07 22:22:00 +05:30
committed by GitHub
parent 3babb432c6
commit b95670f56b
3 changed files with 35 additions and 52 deletions
+1 -1
View File
@@ -705,7 +705,7 @@ func (r *RTPStats) UpdateFromReceiverReport(rr rtcp.ReceptionReport) (rtt uint32
return
}
func (r *RTPStats) LastReceiverReport() time.Time {
func (r *RTPStats) LastReceiverReportTime() time.Time {
r.lock.RLock()
defer r.lock.RUnlock()