Results 1 to 1 of 1

Thread: smaller file gets bigger when compressed

  1. #1
    Join Date
    Jan 2010
    Wheeling WV USA
    Xubuntu 18.04 Bionic Beaver

    smaller file gets bigger when compressed

    i have a large python file with some rather wide divider bars as comments. they are all 160 characters wide and no source lines come anywhere close to that wide. so i checked the width of the file with those comments removed. 125. so i trimmed the width of the file to 128 characters. for fun i decided to cut the width in steps of 8 and compress each (160, 152, 144, 136, 128). i used "xz -9" to do the compression, the original sizes are: 50462, 49847, 49231, 48615, 47999. the compressed sizes are: 9876, 9880, 9876, 9876, 9860. the 2nd file is smaller but its compressed file is larger. then the 3rd and 4th compressed files are the same size as the 1st. is this odd?

    that python file can be seen here in the original width.
    Last edited by Skaperen; 4 Weeks Ago at 08:09 AM. Reason: add link to file
    What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts