huh, learn something around here everyday. I always suspected that's how gzip compression worked, never bothered to learn. Thanks perlmonks! So I wonder where the break even point is? His example is short, but he refers to moving Large Programs(tm) around.

I thought there was an Apache module that compressed URL parameters with gzip and hashed the output and I remember thinking that the strings were so short it seemed like it's only use was obfuscation. Poking around CPAN there are so many Apache modules now (vs then) that I got sidetracked looking at PerlIO::gzip. Take a look, maybe it'll save you some time.

Depending on that serial link you might think about using PPP compression. PPP is too much overhead (but you did say the link was busy) so you might be running straight comms. What was the compression built into the modems called, v42?

I'm sure you've already explored XON/XOFF vs RTS/CTS to save a few bits. 7bit vs 8bit to save on checksums. Oh, checksums, yuck, lose a bit on a noisy serial link and your data won't decompress, but then again your code wouldn't work (correctly) either.

You could send the compiled bytecode. Too much work for too little benefit. Guess I've been reading too much java serialization late at night. Maybe you could run it through Acme::Morse or something that generates code that would compress better?

In reply to Re: reversible pack()? by elwarren
in thread reversible pack()? by monsieur_champs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.