Article View: comp.sys.atari.st
Article #3740Re: AUTO CRUNCH?!?...
From: Daniel A. Glasser
Date: Wed, 06 Sep 1989 20:01
Date: Wed, 06 Sep 1989 20:01
21 lines
1599 bytes
1599 bytes
In article <111500025@uxa.cso.uiuc.edu>, glk01126@uxa.cso.uiuc.edu writes:
> Can't someone write a PACK/CRUNCH type dealie that
> compresses all writes and uncompresses the reads when any
> file action is done?
Yes and no. This works only when you never need to do an update operation
on the file from any application. A purely sequential file can be compressed
on write and decompressed on read, but it cannot be seek'ed into, records
cannot be skipped, and in all likelyhood, it cannot be appended to once
closed. There are exceptions, of course.
The reason for this is that any two arbitrary strings of bytes of the same
length are unlikely to compress to the same number of bytes. Change one
character in the uncompressed stream and the size of the compressed stream
may change by several bytes in either direction.
--
_____________________________________________________________________________
Daniel A. Glasser One of those things that goes
uwvax!per2!dag "BUMP!!!(ouch)" in the night.
---Persoft, Inc.---------465 Science Drive-------Madison, WI 53711-----------
Technical Details
Message-ID:
<879@per2.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!dogie.macc.wisc.edu!uwvax!per2!dagReferences:
<111500025@uxa.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!dogie.macc.wisc.edu!uwvax!per2!dag From: dag@per2.UUCP (Daniel A. Glasser) Newsgroups: comp.sys.atari.st Subject: Re: AUTO CRUNCH?!?... Summary: Works only for read-only and write-only files, not dynamic. Message-ID: <879@per2.UUCP> Date: 6 Sep 89 20:01:04 GMT References: <111500025@uxa.cso.uiuc.edu> Organization: Persoft Inc., Madison, WI Lines: 21