Skip to content

Commit

Permalink
use array defaults (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock authored Sep 27, 2024
1 parent f541525 commit 9a3eddf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private SpeckleObjectSerializerPool() { }

public JsonTextReader GetJsonTextReader(TextReader reader) => new(reader) { ArrayPool = _charPool };

private readonly SerializerPool<char> _charPool = new(ArrayPool<char>.Create(4096, 4096));
private readonly SerializerPool<char> _charPool = new(ArrayPool<char>.Create()); //use default values

private class SerializerPool<T>(ArrayPool<T> pool) : IArrayPool<T>
{
Expand Down

0 comments on commit 9a3eddf

Please sign in to comment.