Re: compression API available in Java & C++?



On Tue, 6 Dec 2005 16:58:05 -0700, "Monique Y. Mudama"
<spam@xxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted someone who
said :

>I'm looking for a compression algorithm that works better than gzip
>for small (12 bytes or so) chunks of data. Ideally there would be a
>free implementation for Java and C++ that we could use for commercial
>purposes.
>
>Specifically, we are streaming data from a C++ server to a Java applet
>and would love to use as little bandwidth as possible.
>
>We're not using any form of compression right now, but the belief is
>that gzip works in blocks, so small chunks of data don't get much
>benefit. (Anyone disagree?)

the key to this in getting a big sample to compress and studying it
and seeing that both ends have access to the same summary info. You
won't do much with totally self contained messages.

What do you know about the data? Every additional fact can be
exploited in designing custom compression.

It the ideal case, your 12 bytes are one of 100 phrases (commands) and
you can replace them with a 1 byte int indexing the message.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: compression API available in Java & C++?
    ... I'm looking for a compression algorithm that works better than gzip ... for small chunks of data. ... We're not using any form of compression right now, ...
    (comp.lang.java.programmer)
  • Re: File packaging question
    ... into chunks but there is an inherent ugly compromise: ... Bigger chunks increase the compression ratio but ... to speed up huffman decoding is to use a big lookup table on at least ...
    (comp.programming)
  • Re: compression API available in Java & C++?
    ... >for small chunks of data. ... Compression will buy you little if every chunk goes out in its own ... The packet wrapper overhead will overwhelm the payload. ... My suggestion then is to see if there is a way to tweak the send delay ...
    (comp.lang.java.programmer)
  • target: Parallel Compresion/decompresion
    ... I'm talking about Lossless compression. ... process the chunks and put all the another queue. ... In the decompression, the main problem just appears when I want to ...
    (comp.compression)
  • Re: File packaging question
    ... may be extracted faster than an uncompressed file. ... chunks but there is an inherent ugly compromise: ... but small chunks also mean a worse compression ratio. ...
    (comp.programming)