You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs
+15-63
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
usingSystem.Collections.Generic;
3
3
usingSystem.Linq;
4
4
usingSystem.Reflection;
5
+
usingSystem.Runtime.CompilerServices;
5
6
usingSystem.Runtime.InteropServices;
6
7
usingBenchmarkDotNet.Attributes;
7
8
@@ -219,74 +220,25 @@ internal static bool IsByRefLike(this Type type)
219
220
privateconstintMonoDefaultCutoffSize=64;
220
221
221
222
// We use the fastest possible method to return a value of the workload return type in order to prevent the overhead method from taking longer than the workload method.
222
-
// Classic Mono runs `default` slower than reading a field for very large structs. `default` is faster for all types in all other runtimes.
0 commit comments