Hi,
Not really a bug, and I wasn't sure where else to ask,
but i've got jazzlib compiled and running under the J2ME
MIDP - well, on a PocketPC anyway. I also want to run
my code on PalmOS, but I constantly get OutOfMemory
errors; is there any way of limiting the memory usage of
jazzlib?
i noticed that the PendingBuffer and DeflaterEngine
assign fairly large byte arrays.
Thanks,
James
Logged In: YES
user_id=18252
You can edit the DeflaterConstants.
Decreasing the DEFAULT_MEM_LEVEL by 1 halves the memory
usage of the pending buffer and the hash. Similarly the
MAX_WBITS can be decrease which affects the size of the prev
and window arrays of the DeflaterEngine.
Decreasing these constants affects both speed and compression
quality.