[A83] Re: Compression update


[Prev][Next][Index][Thread]

[A83] Re: Compression update






Henk Poley wrote:

> > Van: Darren <qarnos@dingoblue.net.au>
> >
> > Anyway, some of the features I am implementing in the 'proper' library
> > are:
> > [..]
> > 3) 'buffer collision' detection and hopefully repair!
> >     This is for people who want to be tricky. You could, for instance,
> > set the output pointer to say, 64 bytes behind the input pointer. This
> > would save lots of memory, but a problem will occur if the output
> > pointer 'catches up' to the input pointer.
>
> Uhm, you said that LZSS can maximaly have a 'non-compressionrate' of
> 112.5%. So just calc you offset...

Ahhh... But what if you want to compress a 10k file with old 500 bytes of free
RAM? It may still be possible to compress the file without any problems, but
you won't know until you actually try to compress it. Users may be a bit miffed
by a "file to large to compress" error message ;)




References: