From ca41cc3b5fcfd5b4b53ce7e27392b062da95af99 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Tue, 16 Jan 2018 22:28:35 +0300 Subject: [PATCH] [BZip2] Additionally reduce block sizes by 1.25 This is required, because, apparently, original bzip2 implementation doesn't account for the fact that the initial RLE can cause expansion of the data. --- Sources/BZip2/BZip2+BlockSize.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/BZip2/BZip2+BlockSize.swift b/Sources/BZip2/BZip2+BlockSize.swift index 36dd024f..be89cb48 100644 --- a/Sources/BZip2/BZip2+BlockSize.swift +++ b/Sources/BZip2/BZip2+BlockSize.swift @@ -60,7 +60,7 @@ public extension BZip2 { } var sizeInBytes: Int { - return self.rawValue * 100 * 1000 + return self.rawValue * 100 * 800 } }