Increase buffer size for decompressTo

This commit is contained in:
Caleb Gardner
2025-05-28 02:49:53 -05:00
parent f122d1b4be
commit 5be59be220
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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 => {