Paul Eggert <eggert@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 51921) by debbugs.gnu.org; 17 Nov 2021 20:33:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 17 15:33:44 2021 Received: from localhost ([127.0.0.1]:34005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mnRcl-0005gw-Qx for submit <at> debbugs.gnu.org; Wed, 17 Nov 2021 15:33:44 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mnRci-0005gN-7r for 51921 <at> debbugs.gnu.org; Wed, 17 Nov 2021 15:33:41 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E57551600C5; Wed, 17 Nov 2021 12:33:34 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1q-u3wib2L_q; Wed, 17 Nov 2021 12:33:34 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 197A51600D1; Wed, 17 Nov 2021 12:33:34 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pIQR4dRPxqft; Wed, 17 Nov 2021 12:33:34 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id E61731600C5; Wed, 17 Nov 2021 12:33:33 -0800 (PST) Message-ID: <8161763d-d454-8217-0617-4b7e0af20caf@HIDDEN> Date: Wed, 17 Nov 2021 12:33:33 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: bug#51921: Anything like ztail Content-Language: en-US To: Peng Yu <pengyu.ut@HIDDEN> References: <CABrM6w=4fBEscONrQjsz968pf2RaAXVHE7FbwBaVMEZAwkb5Eg@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department In-Reply-To: <CABrM6w=4fBEscONrQjsz968pf2RaAXVHE7FbwBaVMEZAwkb5Eg@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 51921 Cc: 51921 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.4 (---) On 11/17/21 05:08, Peng Yu wrote: > Is there a way to make ztail more efficient? Not in general, no. The compressed file can't be decompressed from random locations. There might be some options for doing what you're suggesting if --rsyncable is used during compression (which it usually isn't) and if someone would like to code up something for gzip (which would be nontrivial).
bug-gzip@HIDDEN
:bug#51921
; Package gzip
.
Full text available.Received: (at submit) by debbugs.gnu.org; 17 Nov 2021 13:09:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 17 08:09:00 2021 Received: from localhost ([127.0.0.1]:60418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mnKgM-0008Tx-Sq for submit <at> debbugs.gnu.org; Wed, 17 Nov 2021 08:09:00 -0500 Received: from lists.gnu.org ([209.51.188.17]:60260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <pengyu.ut@HIDDEN>) id 1mnKgH-0008Ti-In for submit <at> debbugs.gnu.org; Wed, 17 Nov 2021 08:08:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <pengyu.ut@HIDDEN>) id 1mnKgH-00062r-E6 for bug-gzip@HIDDEN; Wed, 17 Nov 2021 08:08:53 -0500 Received: from [2a00:1450:4864:20::131] (port=40808 helo=mail-lf1-x131.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <pengyu.ut@HIDDEN>) id 1mnKgG-0000xd-4a for bug-gzip@HIDDEN; Wed, 17 Nov 2021 08:08:53 -0500 Received: by mail-lf1-x131.google.com with SMTP id l22so8166845lfg.7 for <bug-gzip@HIDDEN>; Wed, 17 Nov 2021 05:08:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=P8fIiGUxTFWFTGKD84QQzK09BcRMpCm49zUPFr/vd+E=; b=a4XLRyfa9ggdIJdIPX9hv0OuRRZWAPLGWPeIIAzkUtKMBbADVvMYMJZi0RcBpGujDY kyD1b7RuQJZMgAVFeSwNGqRAR7gptxrzBwmpHd0lSnF6htmyPx39cH2Bcmz3nGGcFJzf 4nvjw5DHBicbcHeXHTcCGPFQzbr4DeVgqFZZ8vjdSKMJ6beyzzbyxpcg8Pli/KGGf2Bh dW4kswqbY+tMQkPfvMqzCnTZqsujSuGJMyeXfLidsku4NH/4X7WN13EmpBVJA5kdrY0C zg3nY+Dl5vuHuxKdJJK/ntKeSbQXv/8DqL8Kqx7k/liQIJPzDvcaC2YNoLBtBDnr15RY tvIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=P8fIiGUxTFWFTGKD84QQzK09BcRMpCm49zUPFr/vd+E=; b=Rr8NG7zTGYo5WAJm/AQy49qxqHw+cEC2lNR+Qw2ov51Zm4DEIDrU1ZjzwzRN/UvDEM 6V/yRNBGLFPwOnPkQwN/NssivI2XTZfYd5Y0Ww0YxTGSTQIMRhPABZXM9Nx3JUAWyro2 P4SOV5p4dwJJ5wFro6i/CiLDPZ0dowIqMETMJdapA5OEBahNgGbYEMtA6IWL9EoeVkeY AvXvlVVBEwl9YtFdw5ZIbWrrilajqfC4p8LvR2nBjT+KI008eNghETLLpP2I11gkHtwQ M8+sLqwqf6hXHh6nPW0MxniBrjCnMX57T+pWKtOLqkMsfFfdPISpsCsEq3EiOmo/8GF2 MiuA== X-Gm-Message-State: AOAM533BzooAAYj8oNQWGZZTQMl49IpseBn8H7Y8abH/ova2cQPu/Cir +QgP0NRYQ6N4ZUa6DdLxQVbuZiws5j8P+ZfrHhFGBJl/ X-Google-Smtp-Source: ABdhPJxlgHIf7gSgW5mbKMIluD0nlh/kHOoaVcpCkck1zuWs2GKNozoHgI0bY55AVgrFEN2Q6pldFTNzPth7uTTWxOQ= X-Received: by 2002:a05:6512:3d90:: with SMTP id k16mr15194400lfv.361.1637154529374; Wed, 17 Nov 2021 05:08:49 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a2e:9dc9:0:0:0:0:0 with HTTP; Wed, 17 Nov 2021 05:08:48 -0800 (PST) From: Peng Yu <pengyu.ut@HIDDEN> Date: Wed, 17 Nov 2021 07:08:48 -0600 Message-ID: <CABrM6w=4fBEscONrQjsz968pf2RaAXVHE7FbwBaVMEZAwkb5Eg@HIDDEN> Subject: Anything like ztail To: bug-gzip@HIDDEN Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::131 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=pengyu.ut@HIDDEN; helo=mail-lf1-x131.google.com X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) Hi, Is there a more efficient way to perform ztail. I could use 'zcat f.gz | tail'. But this means that it needs to go through the file until the end. It would be more efficient to just check the end (as `tail f.txt` does it). Is there a way to make ztail more efficient? -- Regards, Peng
Peng Yu <pengyu.ut@HIDDEN>
:bug-gzip@HIDDEN
.
Full text available.bug-gzip@HIDDEN
:bug#51921
; Package gzip
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.