summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/src/util/zlib/ZInputStream.cs2
-rw-r--r--crypto/src/util/zlib/ZOutputStream.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/util/zlib/ZInputStream.cs b/crypto/src/util/zlib/ZInputStream.cs

index 434fe95c8..ea803fa4f 100644 --- a/crypto/src/util/zlib/ZInputStream.cs +++ b/crypto/src/util/zlib/ZInputStream.cs
@@ -49,7 +49,7 @@ namespace Org.BouncyCastle.Utilities.Zlib return z; } - private const int BufferSize = 512; + private const int BufferSize = 4096; protected ZStream z; protected int flushLevel = JZlib.Z_NO_FLUSH; diff --git a/crypto/src/util/zlib/ZOutputStream.cs b/crypto/src/util/zlib/ZOutputStream.cs
index 1633b2d8f..a1482a07f 100644 --- a/crypto/src/util/zlib/ZOutputStream.cs +++ b/crypto/src/util/zlib/ZOutputStream.cs
@@ -49,7 +49,7 @@ namespace Org.BouncyCastle.Utilities.Zlib return z; } - private const int BufferSize = 512; + private const int BufferSize = 4096; protected ZStream z; protected int flushLevel = JZlib.Z_NO_FLUSH;