+
+ # allocate the zlib context lazily here, instead of in ->new.
+ # Deflate contexts are memory-intensive and this object may
+ # be sitting in the Qspawn limiter queue for a while.
+ my $gz = $self->{gz} ||= do {
+ my ($g, $err) = Compress::Raw::Zlib::Deflate->new(%OPT);
+ $err == Z_OK or die "Deflate->new failed: $err";
+ $g;
+ };