aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/ZipArchive
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-08 01:28:57 +0530
committerRoopesh Chander <roop@roopc.net>2018-12-08 02:17:55 +0530
commitaa0b28843659e4a762c181a12ce37597a0f58d9e (patch)
tree6d77137fbb94befc49148ad7e3dc61447d93b7b6 /WireGuard/WireGuard/ZipArchive
parentSettings: Export log: Perform file operations in a background thread (diff)
downloadwireguard-apple-aa0b28843659e4a762c181a12ce37597a0f58d9e.tar.xz
wireguard-apple-aa0b28843659e4a762c181a12ce37597a0f58d9e.zip
Zip: Increase size of buffer used to read data from the archive
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/ZipArchive')
-rw-r--r--WireGuard/WireGuard/ZipArchive/ZipArchive.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/ZipArchive/ZipArchive.swift b/WireGuard/WireGuard/ZipArchive/ZipArchive.swift
index 2faa5164..7cf702c0 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<Int8>.allocate(capacity: bufferSize)
var dataBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: bufferSize)