Skip to content

Commit cdedd57

Browse files
committed
perf: reduce memory footprint
1 parent ff22a4d commit cdedd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveStreamingServerNet.Standalone/Internal/Services/BitrateTrackingService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private int CalculateBitrate(List<DataPoint> data, TimeSpan window)
106106
return (int)(totalBytes * 8 / timeSpan.TotalSeconds);
107107
}
108108

109-
private record DataPoint(int ByteCount, DateTime Timestamp);
109+
private record struct DataPoint(int ByteCount, DateTime Timestamp);
110110
}
111111
}
112112
}

0 commit comments

Comments
 (0)