Wow, that's a lousy compression.
Moderators: ~xpr'd~, tyteen4a03, Stinky, Emerald141, Qloof234, jdl
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
Wow, that's a lousy compression.
I compressed a setup file for my Hub project, and the .zip file was larger than the actual file I was compressing!
Re: Wow, that's a lousy compression.
LOL, that IS weird. Although all lossless compressions (including zip) will have some kinds of data that do become larger after "compressing".DEEMAN223344 wrote:I compressed a setup file for my Hub project, and the .zip file was larger than the actual file I was compressing!
Rest in peace, Kym. I hardly knew ya.
Rest in peace, Marinus. A bright star, you were ahead of me on my own tracks of thought. I miss you.
Rest in peace, Marinus. A bright star, you were ahead of me on my own tracks of thought. I miss you.
-
- Rainbow AllStar
- Posts: 4548
- Joined: Fri Dec 26, 2008 4:56 pm
Bytes are 8 bits each and that does not change. You meant "symbols", right?Emerald141 wrote:How does compression work, anyway? Do the individual bytes somehow become smaller?
Lossless compression works by rewriting the data in a way that allows the original to be restored, but it's smaller than the original.
General compression algorithms are usually fairly complicated, but the idea can be explained on two simple to understand methods: byte-pair encoding and run-length encoding. I'll demonstrate with symbols, it's easier to understand.
Byte-pair encoding:
Suppose we have a string that looks like this:
AABAACDBAEAAFAAGAAHAA
The "AA" pair appears more often than any other pair. So we replace it with a symbol that isn't yet there in the string. An additional sequence is written as a "table of replacement".
Z=AA
ZBZCDBAEZFZGZHZ
Not very effective here, but in longer examples it can sometimes work miracles. Still, it's fairly limited.
Run-length encoding:
Suppose we have a string like this:
DDDDrrrRRRddddddrrrRRuuuLrrrUULLL
That can be imagined as a solution for a box pushing puzzle, Up Down Left Right, big letters for pushing, small levels for just moving.

Now we do this:
4D3r3R6d3r2R3uL3r2U3L
In both cases, it's perfectly restorable but it is shorter... compression.
One other method is supposedly REALLY popular as something programs do AFTER applying their own methods... so it's kinda important for all file compressors, but... this one is more complicated. Maybe it's the fact that I'm ill right now, but... I don't really get it.
Anyway, it's here: http://en.wikipedia.org/wiki/Huffman_coding
Rest in peace, Kym. I hardly knew ya.
Rest in peace, Marinus. A bright star, you were ahead of me on my own tracks of thought. I miss you.
Rest in peace, Marinus. A bright star, you were ahead of me on my own tracks of thought. I miss you.
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
Another thing: WHAT IS MAKING THESE HUB PROJECTS SO HUGE!?
MOMII was only 86 MB compressed.
My new (and shorter) project is....
*drumroll*
THIRTY GIGABYTES, EVEN WHEN IN A .ZIP.
Strange thing is, MOMII BETA is not only longer than MOTLWL DEMO 1, it had a_lot_of unnecessary .exe files, while MOTLWL does not.
WHY IS IT SO GIGANTIC?!
MOMII was only 86 MB compressed.
My new (and shorter) project is....
*drumroll*
THIRTY GIGABYTES, EVEN WHEN IN A .ZIP.
Strange thing is, MOMII BETA is not only longer than MOTLWL DEMO 1, it had a_lot_of unnecessary .exe files, while MOTLWL does not.
WHY IS IT SO GIGANTIC?!
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
- tyteen4a03
- Rainbow AllStar
- Posts: 4386
- Joined: Wed Jul 12, 2006 7:16 am
- Contact:
What do you have inside it? List the biggest items may help.
EDIT: From what I saw, the huffman thing calculates the frequency of a letter in a document before compiling it into a proper 'archive'. If a letter, for example, 'a', existed so many times, the program replaces 'a' with a bit. The letter 'z' appeared the least, the program replaces 'z' with at most 25 bits (note: not 26 because of 0). Each letter, at usual, takes 1 byte (8 bits), but using huffman's thingy (xD), 'a' only takes 1 bit (1/8) while 'z' takes 25 (25/8 -> 3.studIo wait I mean something). This effictively selectively compress letters that appeared the most.
FUNFACT: Usually the most appeared 'letter' is not letters, but space.
Edited by tyteen: merged post~ *whistles away*
EDIT: From what I saw, the huffman thing calculates the frequency of a letter in a document before compiling it into a proper 'archive'. If a letter, for example, 'a', existed so many times, the program replaces 'a' with a bit. The letter 'z' appeared the least, the program replaces 'z' with at most 25 bits (note: not 26 because of 0). Each letter, at usual, takes 1 byte (8 bits), but using huffman's thingy (xD), 'a' only takes 1 bit (1/8) while 'z' takes 25 (25/8 -> 3.studIo wait I mean something). This effictively selectively compress letters that appeared the most.
FUNFACT: Usually the most appeared 'letter' is not letters, but space.
Edited by tyteen: merged post~ *whistles away*
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
- Guppy Star
- Rainbow Master
- Posts: 919
- Joined: Sat Oct 16, 2010 7:20 am
You can try compressing all wdf by editing in pic manager, saving it as JPG and renaming it to wdf (first delete or move original to some location)DEEMAN223344 wrote:Another thing: WHAT IS MAKING THESE HUB PROJECTS SO HUGE!?
MOMII was only 86 MB compressed.
My new (and shorter) project is....
*drumroll*
THIRTY GIGABYTES, EVEN WHEN IN A .ZIP.
Strange thing is, MOMII BETA is not only longer than MOTLWL DEMO 1, it had a_lot_of unnecessary .exe files, while MOTLWL does not.
WHY IS IT SO GIGANTIC?!
You can also use FASTEST option while compressing using WINRAR etc
the first one probably won't work. the picture managers i use save jpg's at full quality, uncompressed. plus, jpg's aren't good for compression.Guppy Star wrote:You can try compressing all wdf by editing in pic manager, saving it as JPG and renaming it to wdf (first delete or move original to some location)
You can also use FASTEST option while compressing using WINRAR etc
using the fastest option while compressing will make the file bigger. i don't see why anyone would do that.
- tyteen4a03
- Rainbow AllStar
- Posts: 4386
- Joined: Wed Jul 12, 2006 7:16 am
- Contact:
- Guppy Star
- Rainbow Master
- Posts: 919
- Joined: Sat Oct 16, 2010 7:20 am
Depends on the file you use~xpr'd~ wrote:the first one probably won't work. the picture managers i use save jpg's at full quality, uncompressed. plus, jpg's aren't good for compression.Guppy Star wrote:You can try compressing all wdf by editing in pic manager, saving it as JPG and renaming it to wdf (first delete or move original to some location)
You can also use FASTEST option while compressing using WINRAR etc
using the fastest option while compressing will make the file bigger. i don't see why anyone would do that.
If there is only one file of large size, the RAR/ZIP size increases
If there are lots of small files of total 100MB size perhaps, the fastest option compresses it up to 60 above MB
EDIT: 60 MB or a little above - made a mistake earlier
Edited by tyteen: merged post
DEEMAN223344 wrote:Another thing: WHAT IS MAKING THESE HUB PROJECTS SO HUGE!?
MOMII was only 86 MB compressed.
My new (and shorter) project is....
*drumroll*
THIRTY GIGABYTES, EVEN WHEN IN A .ZIP.

DEEMAN223344 wrote:Strange thing is, MOMII BETA is not only longer than MOTLWL DEMO 1, it had a_lot_of unnecessary .exe files, while MOTLWL does not.
WHY IS IT SO GIGANTIC?!
DEEMAN223344 wrote:DEMO 1
*imagines the size of the full project*DEEMAN223344 wrote:DEMO 1

Rest in peace, Kym. I hardly knew ya.
Rest in peace, Marinus. A bright star, you were ahead of me on my own tracks of thought. I miss you.
Rest in peace, Marinus. A bright star, you were ahead of me on my own tracks of thought. I miss you.
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
^Muzozavr wrote:DEEMAN223344 wrote:Another thing: WHAT IS MAKING THESE HUB PROJECTS SO HUGE!?
MOMII was only 86 MB compressed.
My new (and shorter) project is....
*drumroll*
THIRTY GIGABYTES, EVEN WHEN IN A .ZIP.
DEEMAN223344 wrote:Strange thing is, MOMII BETA is not only longer than MOTLWL DEMO 1, it had a_lot_of unnecessary .exe files, while MOTLWL does not.
WHY IS IT SO GIGANTIC?!DEEMAN223344 wrote:DEMO 1*imagines the size of the full project*DEEMAN223344 wrote:DEMO 1
With what I'm planning, it may be OVER NINE THOUSAND GB!!!!!!
=9.01 Terabytes.








- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
DEEMAN223344 wrote:OH! It's thirty MB, not GB. Silly me.

Still, glad to know it isn't REALLY this large!

Last edited by Muzozavr on Wed Aug 21, 2013 11:11 pm, edited 1 time in total.
Rest in peace, Kym. I hardly knew ya.
Rest in peace, Marinus. A bright star, you were ahead of me on my own tracks of thought. I miss you.
Rest in peace, Marinus. A bright star, you were ahead of me on my own tracks of thought. I miss you.
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
- boywhoflies
- Rainbow Spirit Chaser
- Posts: 5510
- Joined: Thu Jun 26, 2008 3:16 pm
- tyteen4a03
- Rainbow AllStar
- Posts: 4386
- Joined: Wed Jul 12, 2006 7:16 am
- Contact:
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am