From owner-freebsd-hackers Tue Mar 14 14:45:55 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA10282 for hackers-outgoing; Tue, 14 Mar 1995 14:45:55 -0800 Received: from tfs.com (mailhub.tfs.com [140.145.250.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id OAA10274 for ; Tue, 14 Mar 1995 14:45:54 -0800 Received: by tfs.com (smail3.1.28.1) Message-Id: From: julian@tfs.com (Julian Elischer) Subject: Re: install compressed binary patch To: bakul@netcom.com (Bakul Shah) Date: Tue, 14 Mar 1995 14:45:22 -0800 (PST) Cc: freebsd-hackers@freefall.cdrom.com In-Reply-To: <199503142050.MAA06074@netcom17.netcom.com> from "Bakul Shah" at Mar 14, 95 12:50:45 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 955 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > 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). well, there must be something like this already: consider: we pull a page in from the compressed file... (or even non compressed) the page get's swapped out.. (obviously NOT to the file..) therefore there are already two entities being tracked by the kernel.. I assume we could extend this so that the swap object has the entire uncompressed version of the file? just an idea julian