Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261340AbUDNT34 (ORCPT ); Wed, 14 Apr 2004 15:29:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261375AbUDNT34 (ORCPT ); Wed, 14 Apr 2004 15:29:56 -0400 Received: from mail0-96.ewetel.de ([212.6.122.96]:12679 "EHLO mail0.ewetel.de") by vger.kernel.org with ESMTP id S261340AbUDNT3y convert rfc822-to-8bit (ORCPT ); Wed, 14 Apr 2004 15:29:54 -0400 Date: Wed, 14 Apr 2004 21:29:51 +0200 (CEST) From: Pascal Schmidt To: Guillaume =?iso-8859-15?q?Lac=F4te?= cc: linux-kernel@vger.kernel.org Subject: Re: Using compression before encryption in device-mapper In-Reply-To: <200404141725.31660.Guillaume@Lacote.name> Message-ID: References: <1KykU-4VD-17@gated-at.bofh.it> <1KTfJ-5gK-25@gated-at.bofh.it> <200404141725.31660.Guillaume@Lacote.name> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-CheckCompat: OK Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1083 Lines: 25 On Wed, 14 Apr 2004, Guillaume [iso-8859-15] Lac?te wrote: > You are right that in this very case, the per-bit entropy will be > (1 - 1/(1+1/8) ) ~ 12% lower than in the original text. The point is > that this case (which has nothing to do with the case where a text can > be well compressed or not, this is the worst _relative_ performance of > dynamic versus static encoding) does not happen "too often". I was only pointing out a corner case where your argument doesn't hold. I completely agree that it is rather unlikely to happen with real world data. There is one exception, though: data that has already been compressed before on a higher level; by the user, for example. However, in that case you could say that what you're trying to accomplish has already happened before during the original compression run. -- Ciao, Pascal - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/