Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: examples using Compress::Zlib ?

by idnopheq (Chaplain)
on Sep 10, 2001 at 13:33 UTC ( [id://111447]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: examples using Compress::Zlib ?
in thread examples using Compress::Zlib ?

If you go with the in-memory compression/decompression odel, you have more flexibility. From the perldoc for the deflateInit call:

-Level Defines the compression level. Valid values are 1 through 9, Z_BEST_SPEED, Z_BEST_COMPRESSION, and Z_DEFAULT_COMPRESSION. The default is -Level =>Z_DEFAULT_COMPRESSION.

So then:

deflateInit( -Bufsize => 300, -Level => Z_BEST_SPEED ) ;

Then IIRC write the buffer to disk.

HTH
--
idnopheq
Apply yourself to new problems without preparation, develop confidence in your ability to to meet situations as they arrise.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://111447]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.