From 2e5d467bc7a5316dccdee7523e3e21220aebf1a5 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Sat, 8 Dec 2018 01:28:57 +0530 Subject: [PATCH] Zip: Increase size of buffer used to read data from the archive --- WireGuard/WireGuard/ZipArchive/ZipArchive.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)