From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F3DBC77B61 for ; Thu, 13 Apr 2023 10:10:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230364AbjDMKKQ (ORCPT ); Thu, 13 Apr 2023 06:10:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230236AbjDMKKC (ORCPT ); Thu, 13 Apr 2023 06:10:02 -0400 Received: from relay05.pair.com (relay05.pair.com [216.92.24.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D56A974A for ; Thu, 13 Apr 2023 03:09:53 -0700 (PDT) Received: from orac.inputplus.co.uk (17.101.125.91.dyn.plus.net [91.125.101.17]) by relay05.pair.com (Postfix) with ESMTP id 245A01A2681; Thu, 13 Apr 2023 06:09:53 -0400 (EDT) Received: from orac.inputplus.co.uk (orac.inputplus.co.uk [IPv6:::1]) by orac.inputplus.co.uk (Postfix) with ESMTP id C65642136E; Thu, 13 Apr 2023 11:09:51 +0100 (BST) From: Ralph Corderoy To: linux-man , groff@gnu.org Subject: Re: Compressed man pages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit In-reply-to: References: <073413e2-7d35-f0d7-26eb-f66908d7af6a@gmail.com> <834jpuuc1a.fsf@gnu.org> <6ea6d1fe-375f-487a-b524-adc86880d3de@gmail.com> <83sfddqvk3.fsf@gnu.org> <390c8bba-6089-b006-eaf1-9fcfda2c6c4b@gmail.com> <837cumonv9.fsf@gnu.org> <78ca213f-8723-dccb-e131-081400c28e5d@gmail.com> <87a5zhwntt.fsf@ada> <875ya1ecq1.fsf@gentoo.org> <20230412140451.f03a6c19983694fe844bbb5a@plushkava.net> <44768e26-ed92-0562-2318-68fec781126b@gmail.com> Date: Thu, 13 Apr 2023 11:09:51 +0100 Message-Id: <20230413100951.C65642136E@orac.inputplus.co.uk> Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org Hi Mingye, > [Zstd and brotli each have a "dictionary mode" to deal with this, but > (a) Zstd dict-file requires an extra flag on decompress (b) nobody has > brotli, which has a default dictionary, installed.] I found brotli was already installed here. So here's some numbers, just for the lists' info. $ ls | grep '\.gz$' | shuf -n10 | > while read -r f; do > printf '%32s %5d %5d\n' "$f" `wc -c <"$f"` \ > `zcat "$f" | brotli | wc -c` > done | > awk '{print $0 " " $3/$2}' postmap.1.gz 4125 3333 0.808 gnutls-cli-debug.1.gz 2627 2108 0.802436 cwebp.1.gz 5074 4106 0.809223 findsmb.1.gz 1810 1474 0.814365 ppmntsc.1.gz 1282 973 0.75897 libuv.1.gz 76363 62274 0.8155 xmlwf.1.gz 3486 2760 0.791738 users.1.gz 763 572 0.749672 gpgparsemail.1.gz 294 231 0.785714 perl561delta.1perl.gz 51764 42957 0.829862 $ -- Cheers, Ralph.