Skip to content

Commit

Permalink
Increate buffer size to 4k.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Oct 28, 2024
1 parent 7095410 commit 8ee54a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IKVM.ByteCode/Decoding/ClassFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public static ClassFile Read(in ReadOnlySequence<byte> buffer, IDisposable? disp
/// <exception cref="ArgumentNullException"></exception>
/// <exception cref="ArgumentException"></exception>
/// <exception cref="ByteCodeException"></exception>
public static async ValueTask<ClassFile> ReadAsync(Stream stream, int bufferSize = 1024, CancellationToken cancellationToken = default)
public static async ValueTask<ClassFile> ReadAsync(Stream stream, int bufferSize = 4096, CancellationToken cancellationToken = default)
{
if (stream is null)
throw new ArgumentNullException(nameof(stream));
Expand Down Expand Up @@ -380,7 +380,7 @@ public static async ValueTask<ClassFile> ReadAsync(Stream stream, int bufferSize
/// <param name="stream"></param>
/// <param name="bufferSize"></param>
/// <returns></returns>
public static ClassFile Read(Stream stream, int bufferSize = 1024)
public static ClassFile Read(Stream stream, int bufferSize = 4096)
{
if (stream is null)
throw new ArgumentNullException(nameof(stream));
Expand Down

0 comments on commit 8ee54a1

Please sign in to comment.