From a94b4d6ecffc5cc6ce42caa480a9c6910152bc6e Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 14 May 2019 15:29:57 +0700 Subject: Increase zlib default buffer size --- crypto/src/util/zlib/ZInputStream.cs | 2 +- crypto/src/util/zlib/ZOutputStream.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/src/util') 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; -- cgit 1.4.1