Skip to content

Commit

Permalink
make MeasurementsStatistics a readonly ref struct (#1503)
Browse files Browse the repository at this point in the history
Force `MeasurementsStatistics` to never allocate on the heap
  • Loading branch information
skynode authored Aug 12, 2020
1 parent eb20d3e commit 92474e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BenchmarkDotNet/Mathematics/MeasurementsStatistics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace BenchmarkDotNet.Mathematics
/// <summary>
/// the goal of this struct is to avoid any heap allocations, please keep it in mind
/// </summary>
internal struct MeasurementsStatistics
internal readonly ref struct MeasurementsStatistics
{
/// <summary>
/// Standard error in nanoseconds.
Expand Down

0 comments on commit 92474e8

Please sign in to comment.