[Chicago-talk] ASCII compression?
don at drakeconsult.com
Thu Oct 28 16:19:38 CDT 2004
Why ASCII only? Why not use your favorite compression and then pass it to
Do the opposite when you want the data back.
From: chicago-talk-bounces at mail.pm.org
[mailto:chicago-talk-bounces at mail.pm.org] On Behalf Of Jim Thomason
Sent: Thursday, October 28, 2004 3:46 PM
To: Chicago.pm chatter
Subject: [Chicago-talk] ASCII compression?
Anybody know of any good algorithms to do ascii-only compression?
That is, I'm going to spit in ascii data, and I want to read out ascii data.
More specifically, I have 14 chunks of 6 numbers. And I want to
compress it all into a single string that contains only upper case
letters and numbers that can be later decompressed and broken back
into those 14 chunks.
Currently, I'm base-36 encoding the chunks. It seems to save me 33% of
the space, 6 digits -> 4 digits.
Further, ideally, I'd like to avoid using an external lookup table. If
I'm going to have an external table, I'd just dump my entire value
into it and then read it out as a single integer ID lookup value. :-)
I may end up just falling back on this, though.
Chicago-talk mailing list
Chicago-talk at mail.pm.org
More information about the Chicago-talk