07-18-2013
Not really... It's not supposed to know or care how long the file is, it just reads and writes and churns until the OS says 'ok, all done'. If a stream compressor can't handle input of arbitrary length, that's a bug.
So the code that broke down here technically had nothing to do with the compression. Fortunately.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've noticed bzip2 gives a little bit better compression than gzip. So...I'm curious...what's gives the best compression out of all the compression utilities?
Thanks! (6 Replies)
Discussion started by: jalburger
6 Replies
2. UNIX for Advanced & Expert Users
How can I move a file and compress it at the same time? (8 Replies)
Discussion started by: truma1
8 Replies
3. UNIX for Advanced & Expert Users
Hi everybody,
Does anybody know,whether linux-2.4.20-8 supports predictor1 compression in PPP protocol support,as i was able to see there were only two compression techniques that r being supported i.e bsd and
deflate compression from "make menuconfig" under network device... (0 Replies)
Discussion started by: sriram.ec
0 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have a .z file which i understand to be UNIX.
I'm on PC (no UNIX boxes) and have tried many different unzipping programs to extract this .z file, but only PicoZip has allowed me to view what is inside (telling me, i think, that it's not corrupt), but i have not been able to extract... (3 Replies)
Discussion started by: Gonecat
3 Replies
5. UNIX for Dummies Questions & Answers
Hi Folks,
As I am familiar wih both types compresion forms: gun-zip and .rpm. My questions is how do I uncompress gunz.zip type? As the .rpm I can double click and it will extract...Can someone shed some light on this and thank you...
M (2 Replies)
Discussion started by: Mombo_Z
2 Replies
6. UNIX for Advanced & Expert Users
Hi All,
I have a random test file: test.txt, size: 146
$ ll test.txt
$ 146 test.txt
Take 1:
$ cat test.txt | gzip > test.txt.gz
$ ll test.txt.gz
$ 124 test.txt.gz
Take 2:
$ gzip test.txt
$ ll test.txt.gz
$ 133 test.txt.gz
As you can see, gzipping a file and piping into gzip... (1 Reply)
Discussion started by: hanfresco
1 Replies
7. UNIX and Linux Applications
Hi Everyone,
I am a Ph.D student working on some image processing tasks and I have run into an interesting problem that I thought someone on here might have an idea about. This paper discusses a method to compare two images based upon the amount they can be compressed. Sorry, since this is my... (3 Replies)
Discussion started by: rudigarude
3 Replies
8. Shell Programming and Scripting
Hello everyone,
As the title suggests, I am attempting to test adding gzip compression to a connection to an application I am testing. Currently I have the application set up with httptunnel, which forwards the connection to the remote host.
I would like to use a script to intercept the... (5 Replies)
Discussion started by: haggismn
5 Replies
9. Linux
Hi all,
I am working on a sample backup code, where i read the files per 7200 bytes and send it to server. Before sending to server, i compress each 7200 bytes using zlib compression algorithm using dictionary max length of 1.5 MB . I find zlib is slow.
Can anyone recommend me a... (3 Replies)
Discussion started by: selvarajvss
3 Replies
10. UNIX for Advanced & Expert Users
How good is the compression rate of gzip when you use tar with the gzip option? I am pretty amazed that a 1 GB file was reduced to 1019K. This is what I did.
tar -cvf tar_test.tar.gz -T /list_of_files
ls -hl
-rw-r-----. 1 owner group 19 Jul 23 16:00 list_of_files
-rw-r-----. 1 owner group... (7 Replies)
Discussion started by: cokedude
7 Replies
LEARN ABOUT DEBIAN
dpkg::compression
Dpkg::Compression(3) libdpkg-perl Dpkg::Compression(3)
NAME
Dpkg::Compression - simple database of available compression methods
DESCRIPTION
This modules provides a few public funcions and a public regex to interact with the set of supported compression methods.
EXPORTED VARIABLES
$compression_re_file_ext
A regex that matches a file extension of a file compressed with one of the supported compression methods.
EXPORTED FUNCTIONS
my @list = compression_get_list()
Returns a list of supported compression methods (sorted alphabetically).
compression_is_supported($comp)
Returns a boolean indicating whether the give compression method is known and supported.
compression_get_property($comp, $property)
Returns the requested property of the compression method. Returns undef if either the property or the compression method doesn't exist.
Valid properties currently include "file_ext" for the file extension, "default_level" for the default compression level, "comp_prog"
for the name of the compression program and "decomp_prog" for the name of the decompression program.
compression_guess_from_filename($filename)
Returns the compression method that is likely used on the indicated filename based on its file extension.
my $comp = compression_get_default()
Return the default compression method. It's "gzip" unless "compression_set_default" has been used to change it.
compression_set_default($comp)
Change the default compression method. Errors out if the given compression method is not supported.
my $level = compression_get_default_level()
Return the default compression level used when compressing data. It's "9" for "gzip" and "bzip2", "6" for "xz" and "lzma", unless
"compression_set_default_level" has been used to change it.
compression_set_default_level($level)
Change the default compression level. Passing undef as the level will reset it to the compressor specific default, otherwise errors out
if the level is not valid (see "compression_is_valid_level").
compression_is_valid_level($level)
Returns a boolean indicating whether $level is a valid compression level (it must be either a number between 1 and 9 or "fast" or
"best")
AUTHOR
Raphael Hertzog <hertzog@debian.org>.
1.16.15 2014-06-05 Dpkg::Compression(3)