summary refs log tree commit diff
path: root/crypto/src/util
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-05-14 15:29:57 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-05-14 15:29:57 +0700
commita94b4d6ecffc5cc6ce42caa480a9c6910152bc6e (patch)
treee90446150fe99864543828f7f213e861ce35b15f /crypto/src/util
parentRefactor to not need pending_buf_size (diff)
downloadBouncyCastle.NET-ed25519-a94b4d6ecffc5cc6ce42caa480a9c6910152bc6e.tar.xz
Increase zlib default buffer size
Diffstat (limited to 'crypto/src/util')
-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;