in reply to Re^5: string pattern match, limited to first 1000 characters?
in thread string pattern match, limited to first 1000 characters?
I've confirmed that this works by benchmarking with vs. without the InputLength option ... using it yields about a 4x speedup on files of about 50KB (gzipped), since it's only uncompressing the leading 1000 characters.use IO::Uncompress::AnyUncompress qw(anyuncompress) my $input = `cat testfile.gz`; my $output; anyuncompress $input => \$output, { 'InputLength' => 1000 }; print $output;
|
|---|