Use thread pool to compress block in xp3 file

This commit is contained in:
2025-10-11 09:29:16 +08:00
parent 309bccd485
commit ad82ba13fc
4 changed files with 174 additions and 47 deletions

View File

@@ -507,6 +507,10 @@ pub struct Arg {
#[arg(long, global = true)]
/// Disable compressing index in Kirikiri XP3 archive when creating XP3 archive.
pub xp3_no_compress_index: bool,
#[cfg(feature = "kirikiri-arc")]
#[arg(long, global = true, default_value_t = num_cpus::get())]
/// Workers count for compress files in Kirikiri XP3 archive when creating in parallel.
pub xp3_compress_workers: usize,
#[command(subcommand)]
/// Command
pub command: Command,