diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-05-14 15:29:57 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-05-14 15:29:57 +0700 |
commit | a94b4d6ecffc5cc6ce42caa480a9c6910152bc6e (patch) | |
tree | e90446150fe99864543828f7f213e861ce35b15f /crypto/src | |
parent | Refactor to not need pending_buf_size (diff) | |
download | BouncyCastle.NET-ed25519-a94b4d6ecffc5cc6ce42caa480a9c6910152bc6e.tar.xz |
Increase zlib default buffer size
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/util/zlib/ZInputStream.cs | 2 | ||||
-rw-r--r-- | crypto/src/util/zlib/ZOutputStream.cs | 2 |
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; |