Re: LZ: New idea for compression program!


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

Re: LZ: New idea for compression program!



On Tue, 10 Sep 1996, Scott J. Rein wrote:


> At 12:05 PM 9/9/96 -0500, you wrote:
> >I think your idea of having code in the compressed program
> >is a good one in theory, but there are a number of things
> >to consider.  What happens if the decompressor isn't there?
> >you'd have to include code to deal with that situation.  What
> >if there isn't enough ram to run the decompressor?  Again, 
> >more code.  At this point have you added too much code that
> >has to be duplicated in every compressed sting, reducing the
> >value of the compression?  Maybe not but it's an important
> >thing do decide ahead of time.
> >
> >Barry
> 
> I didn't think of that.  Luckily, that code is very small and
> can be included in the decompression program itself (therefore
> it only takes one copy of the code).  The compressed programs
> are stored in .db's in the program that self-executes it.  This
> way there is no shell to take up space.
 
You really can't put the code in the decompression
program that's going to figure out if the decompression
program is there or not, or figure out if there isn't
enough ram to run the decompression program.


It's tempting to get real fancy with this but sometimes simple
is better.


Barry


References: