On Fri, Apr 07, 2000 at 03:05:09PM -0400, Dong Liu wrote:
> Speak of the DOC format, I have some complain about it. It does NOT
> support 8bit characters, such as Chinese codings. So I hacked
> CSpotRun and txt2pdbdoc to use zlib. But I'm not very satisfied
> with, zlib is too large and too slow in the Palm.
First, DOC *does* support 8 bit characters. It doesn't compress them
as nicely (part of the compression assumes space-ascii and has to
escape highbit characters).
However it can compress an 8-bit stream with repeated bytes, in fact
that is where most of the compression comes from.
The simplicity and decompress speed come partially from assuming
things about the input stream.
And how are your using Zlib? I ported it as a GLib for use with GCC,
and found it reasonably fast. How many K/sec are you trying to get?
(Actually what needs to be done it to hand optimize the inner loops
within ZLib - doing so with my Palm DOC compressor provided a 5-6x
gain).
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html