Skip to content

Commit 40d779c

Browse files
committed
cleaning
1 parent 906166e commit 40d779c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

benchmarks/Backdash.Benchmarks.Ping/Measurer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Diagnostics;
22
using System.Runtime.CompilerServices;
33
using System.Text;
4-
using Backdash.Core;
54
using 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])

src/Backdash/Core/Mem.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)