diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-08 01:28:57 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-12-08 02:17:55 +0530 |
commit | aa0b28843659e4a762c181a12ce37597a0f58d9e (patch) | |
tree | 6d77137fbb94befc49148ad7e3dc61447d93b7b6 | |
parent | Settings: Export log: Perform file operations in a background thread (diff) | |
download | wireguard-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>
-rw-r--r-- | WireGuard/WireGuard/ZipArchive/ZipArchive.swift | 2 |
1 files changed, 1 insertions, 1 deletions
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<Int8>.allocate(capacity: bufferSize) var dataBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: bufferSize) |