From 6f96e0039e54d86004dff019a28396860b99a198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 19 Mar 2022 10:00:07 +0800 Subject: [PATCH] Added Extreme => 1 with the xz compression. --- arclog | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arclog b/arclog index 0965d86..60774dd 100755 --- a/arclog +++ b/arclog @@ -2535,7 +2535,7 @@ sub open_write : method { } ($self->{"file"}, $self->{"FH"}) = ($file, $FH); print STDERR " Attaching file with IO::Compress::Xz ... " if $VERBOSE > 2; - $self->{"xz"} = IO::Compress::Xz->new($FH) + $self->{"xz"} = IO::Compress::Xz->new($FH, Extreme => 1) or die "$THIS_FILE: $file: $IO::Compress::Xz::XzError"; print STDERR "done\n" if $VERBOSE > 2; return; @@ -2580,7 +2580,7 @@ sub open_append : method { or die "$THIS_FILE: tempfile: $IO::Uncompress::UnXz::UnXzError"; print STDERR "done\n" if $VERBOSE > 2; print STDERR " Attaching file with IO::Compress::Xz ... " if $VERBOSE > 2; - $xz = IO::Compress::Xz->new($FH) + $xz = IO::Compress::Xz->new($FH, Extreme => 1) or die "$THIS_FILE: $file: $IO::Compress::Xz::XzError"; print STDERR "done\n" if $VERBOSE > 2; @@ -2597,7 +2597,7 @@ sub open_append : method { # A whole new file } else { print STDERR " Attaching file with IO::Compress::Xz ... " if $VERBOSE > 2; - $xz = IO::Compress::Xz->new($FH) + $xz = IO::Compress::Xz->new($FH, Extreme => 1) or die "$THIS_FILE: $file: $IO::Compress::Xz::XzError"; print STDERR "done\n" if $VERBOSE > 2; } @@ -2639,7 +2639,7 @@ sub close : method { # Create empty compressed content print STDERR " Applying empty compressed content ... " if $VERBOSE > 2; - $_ = IO::Compress::Xz->new($FH) + $_ = IO::Compress::Xz->new($FH, Extreme => 1) or die "$THIS_FILE: $file: $IO::Compress::Xz::XzError"; $_->close or die "$THIS_FILE: $file: $IO::Compress::Xz::XzError"; undef $_;