Compress.exe Question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Compress.exe Question
# 1  
Old 02-03-2009
Compress.exe Question

I have noticed while Compressing certain .tar files using Compress.exe, sometimes the Compressed version is bigger than the original which causes the Compressed version to be deleted. Is this normal behavior?
# 2  
Old 02-03-2009
Compress uses the LZW algorithm, which has it's best results if characters have a high repetition. If you have a file consisting only of the letter 'A' repeated 1048576 times (=1M), the compressed file will only have about 1K. If the files are almost random, compression efficiency will go down.
Also, very small files will have almost no perceived compression, as any reduction in size might be canceled by overhead.
You could try gzip or bzip2 on those files.
# 3  
Old 02-03-2009
That explains how the algorithm works but does not asnwer my question.
# 4  
Old 02-03-2009
My theory is that the tar can't be compressed so the Compress process will add stuff in and that is resulting in a bigger file?
# 5  
Old 02-03-2009
Quote:
Originally Posted by brown
That explains how the algorithm works but does not asnwer my question.
Yes, it does:
Quote:
If the files are almost random, compression efficiency will go down.
Poor efficiency means little improvement, or worse than no improvement.
# 6  
Old 02-03-2009
Thanks for your help and patience. I understand after running some more tests.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

exe

hello everyone, could somebody tell me where can i find some good exercises on signals,processes and threads? actually i need to find some solved exercises in system programming. tnx (4 Replies)
Discussion started by: micy
4 Replies

2. Shell Programming and Scripting

find and compress question

I am trying to accomplish follow 1- search $dir_find for \*.txt\* 2- exclude 2 directories $dir_find/abc/* and $dir_find/fit* 3- compress find result 4- move all compressed file to different directory Here is what I have tried. How/where can I add mv?? Can I add to same line/command? ... (1 Reply)
Discussion started by: Jang
1 Replies

3. Programming

How to build .exe from c

All, I have never comipled C code before and would appricaite if anyone could tell me how to build a .exe from a C program. Thanks in advance. (5 Replies)
Discussion started by: thana
5 Replies

4. UNIX for Dummies Questions & Answers

Issue: Compress in unix server and FTP to windows and open the compress file using Winzip

Hi All ! We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows. I have used the utility ZIP like the below. zip -e <newfilename> df2_test_extract.dat but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies

5. Programming

exe

Is it possible to extract c program,from its executable file(.exe)? i mean we dont have program but its exe file only which runs,can we retrieve the program? if yes how? if no why? (2 Replies)
Discussion started by: unknown9
2 Replies

6. Programming

running exe

how we can run the exe when the system starts. (2 Replies)
Discussion started by: phani_sree
2 Replies

7. UNIX for Dummies Questions & Answers

.exe files

how to open .exe file in freebsd system.My work is to run a growth.exe(created by growth.c turbo c 3.0 file).how to run that exe file in freebsd system?Thanks in advance help me (8 Replies)
Discussion started by: kumarangopi
8 Replies

8. SuSE

does exe

does exe files works withe suse am new n linux system and were can i find msn 4 linux (2 Replies)
Discussion started by: abdulla
2 Replies

9. Programming

how To edit exe to insert a serial no wich can be usd by runing exe

At time of installation I have to open the resource. and i have to insert a string serial number in the exe. please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies

10. UNIX for Advanced & Expert Users

.exe file

Hello all, how to run windows .exe file in Linux and vice the versa (3 Replies)
Discussion started by: rajashekaran
3 Replies
Login or Register to Ask a Question