Allocate packetMeta up front to reduce number of allocations. (#1108)

This commit is contained in:
Raja Subramanian
2022-10-20 14:31:19 +05:30
committed by GitHub
parent 4344af6fd3
commit b9894ab014
3 changed files with 28 additions and 16 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ type VideoAllocation struct {
}
func (v VideoAllocation) String() string {
return fmt.Sprintf("VideoAllocation{state: %s, change: %s, bw: %d, del: %d, avail: %+v, exmpt: %+v, rates: %+v, target: %s, dist: %d}",
return fmt.Sprintf("VideoAllocation{state: %s, change: %s, bw: %d, del: %d, avail: %+v, exempt: %+v, rates: %+v, target: %s, dist: %d}",
v.state, v.change, v.bandwidthRequested, v.bandwidthDelta, v.availableLayers, v.exemptedLayers, v.bitrates, v.targetLayers, v.distanceToDesired)
}