From: Roopesh Chander Date: Fri, 7 Dec 2018 19:58:57 +0000 (+0530) Subject: Zip: Increase size of buffer used to read data from the archive X-Git-Tag: 0.0.20181104-5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa0b28843659e4a762c181a12ce37597a0f58d9e;p=thirdparty%2Fwireguard-apple.git Zip: Increase size of buffer used to read data from the archive Signed-off-by: Roopesh Chander --- diff --git a/WireGuard/WireGuard/ZipArchive/ZipArchive.swift b/WireGuard/WireGuard/ZipArchive/ZipArchive.swift index 2faa516..7cf702c 100644 --- a/WireGuard/WireGuard/ZipArchive/ZipArchive.swift +++ b/WireGuard/WireGuard/ZipArchive/ZipArchive.swift @@ -59,7 +59,7 @@ class ZipArchive { throw ZipArchiveError.badArchive } - let bufferSize = 1024 + let bufferSize = 16384 // 16 kb var fileNameBuffer = UnsafeMutablePointer.allocate(capacity: bufferSize) var dataBuffer = UnsafeMutablePointer.allocate(capacity: bufferSize)