Some cleanup to build zon.

Minor start on threaded extraction
This commit is contained in:
Caleb J. Gardner
2026-02-07 16:59:23 -06:00
committed by Caleb Gardner
parent 0e0222cd02
commit 053d64a954
5 changed files with 33 additions and 53 deletions
+1 -2
View File
@@ -198,8 +198,7 @@ pub fn extract(self: *SfsFile, path: []const u8, options: ExtractionOptions) !vo
}
}
defer if (ext_path.len > path.len) alloc.free(ext_path);
//TODO: switch to threaded version.
return self.inode.extractTo(self.archive, path, options);
return self.inode.extractToThreaded(self.archive, path, options, self.archive.thread_count);
}
/// Utility function.