Increase buffer size for decompressTo
This commit is contained in:
@@ -4,4 +4,4 @@ Messing around with zig via making a squashfs library. May amount to something.
|
||||
|
||||
## Current state
|
||||
|
||||
Everything seems to be working now, but performance is absolutely garbage.
|
||||
Performance is pretty terrible, but overall the library should fully work for decompression. Lzo & Lz4 decompression are not supported as they are not a part of zig's stdlib (support may be added later with external libraries).
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ pub const DecompressType = enum(u16) {
|
||||
}
|
||||
|
||||
pub fn decompressTo(self: DecompressType, alloc: std.mem.Allocator, rdr: io.AnyReader, writer: io.AnyWriter) anyerror!void {
|
||||
const buf_size: usize = 1024;
|
||||
const buf_size: usize = 8192;
|
||||
switch (self) {
|
||||
.zlib => try compress.zlib.decompress(rdr, writer),
|
||||
.lzma => {
|
||||
|
||||
Reference in New Issue
Block a user