Niels Thykier <ni...@thykier.net> writes: > Russ Allbery: >> I've done extensive benchmarking of this in Perl for a different >> project and yes, fork and exec of an external compresser is *way* >> faster than using a library. I suspect the Perl compress libraries are >> making extraneous data copies or doing something else suboptimal.
> An exception in my experience: In process is cheaper when the > (de)compressor is available in the PerlIO Layer as native C code. > Notable example being libperlio-gzip-perl where you use "open(my $fd, > '<:gzip', $file)". > At least that was the case when I benchmarked on Lintian in 2.5.10 (2 > releases ago). Ah, I didn't try that! I was only playing around with IO::Uncompress. I may have to go revisit that project, since managing the external process was a huge pain. -- Russ Allbery (r...@debian.org) <http://www.eyrie.org/~eagle/>