Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmk committed Apr 4, 2024
1 parent f25cbf8 commit 34cfc8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions NatsProtocolParserProf/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

public class NatsProtoParserBench
{
private List<ReadOnlySequence<byte>> _sequences;
private NatsProtocolParser _parser;
private List<ReadOnlySequence<byte>> _sequences = new();
private NatsProtocolParser _parser = new();

public void Setup()
{
Expand Down
4 changes: 2 additions & 2 deletions sandbox/MicroBenchmark/NatsProtoParserBench.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace MicroBenchmark;
[PlainExporter]
public class NatsProtoParserBench
{
private List<ReadOnlySequence<byte>> _sequences;
private NatsProtocolParser _parser;
private List<ReadOnlySequence<byte>> _sequences = new();
private NatsProtocolParser _parser = new();

[GlobalSetup]
public void Setup()
Expand Down
2 changes: 1 addition & 1 deletion src/NATS.Client.Core/NatsProtocolParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public readonly struct NatsBytes(ReadOnlySequence<byte> sequence)
public string GetString() => Encoding.ASCII.GetString(sequence);
}

public struct NatsTokenizer
public ref struct NatsTokenizer
{
/*
B: PING␍␊
Expand Down

0 comments on commit 34cfc8a

Please sign in to comment.