Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: examples using Compress::Zlib ?

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


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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-26 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found