File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
benchmarks/Backdash.Benchmarks.Ping Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 11using System . Diagnostics ;
22using System . Runtime . CompilerServices ;
33using System . Text ;
4- using Backdash . Core ;
54using Backdash . Data ;
65
76#pragma warning disable S1215
@@ -82,7 +81,7 @@ public string Summary(bool showSnapshots = true)
8281 Duration: { watch . Elapsed : c}
8382 Snapshots: { snapshots . Count : N0}
8483 Msg Count: { PingMessageHandler . TotalProcessed : N0}
85- Msg Size: { ( ByteSize ) Mem . SizeOf < PingMessage > ( ) }
84+ Msg Size: { ( ByteSize ) Unsafe . SizeOf < PingMessage > ( ) }
8685 """
8786 ) ;
8887 if ( snapshots is [ .., var last ] )
Original file line number Diff line number Diff line change @@ -120,9 +120,6 @@ public static string GetBitString(
120120 return trimmed . ToString ( ) ;
121121 }
122122
123- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
124- public static int SizeOf < TInput > ( ) where TInput : unmanaged => Unsafe . SizeOf < TInput > ( ) ;
125-
126123 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
127124 public static bool IsReferenceOrContainsReferences < T > ( ) => RuntimeHelpers . IsReferenceOrContainsReferences < T > ( ) ;
128125
You can’t perform that action at this time.
0 commit comments