Re: hair-brained code versioning and compression idea
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 11/29/04
- Next message: Bob Grommes: "Re: hair-brained code versioning and compression idea"
- Previous message: Steve Friedl [MVP/Security]: "Re: LNK2005"
- In reply to: Bonj: "hair-brained code versioning and compression idea"
- Next in thread: Bonj: "Re: hair-brained code versioning and compression idea"
- Reply: Bonj: "Re: hair-brained code versioning and compression idea"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Nov 2004 17:19:37 -0000
Bonj <Bonj@discussions.microsoft.com> wrote:
<snip>
> I'm not going to use huffman compression or RLE compression - because
> they're for bytes. I'm only going to be storing my code files - .cs files,
> .c/.cpp files, .h files, even .xml files - so I'm going to use my own type of
> compression - word compression.
<snip>
> Now, you can imagine that words like "System" would be quite popular, hence
> wouldn't take up much space. Also, the text between words can be just stored
> as another word, so "}\n\t" would probably be quite popular aswell.
That sounds very much like what Huffman compression is going to do
anyway. Admittedly, it'll be better if all your files use the same
encoding, but that's likely to be the case anyway - and then a common
word becomes a common byte sequence, so Huffman compression will spot
it and compress it to a short bit sequence.
Have you tried just using things like zip and compared the space saved
by that with the space saved by your algorithm?
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: Bob Grommes: "Re: hair-brained code versioning and compression idea"
- Previous message: Steve Friedl [MVP/Security]: "Re: LNK2005"
- In reply to: Bonj: "hair-brained code versioning and compression idea"
- Next in thread: Bonj: "Re: hair-brained code versioning and compression idea"
- Reply: Bonj: "Re: hair-brained code versioning and compression idea"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|