Date: Wed, 15 Mar 1995 14:40:42 +1000 From: Bruce Evans <bde@zeta.org.au> To: bakul@netcom.com, freebsd-hackers@freefall.cdrom.com Subject: Re: install compressed binary patch Message-ID: <199503150440.OAA31147@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>Notice that decompression is a `pure' function; the same >compressed input will produce the same uncompressed output >every time. Can't this fact be used some way? >The idea is this: given a compressed binary `foo', create an >uncompressed binary somewhere. Upon every invocation of foo >check if the uncompressed version exists. If so continue as >if the user is really invoking the uncompressed version. >The uncompressed version disappears once the last running >instance is gone (or it may be cached for a while to save on >decompression cost). I think the gzip image activator already does a better job than this. Neither does a very good job with the following issues: - caching. Everything should probably be cached for a while (days?) if there is enough space. - transparency. readdir() should act as if only the uncompressed objects exist. Backups should act as if only the compressed objects exist (although this is inconsistent :-). read() and mmap() should give uncompressed objects. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503150440.OAA31147>