From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: make auto-compress-mode only listing tarballs instead of depressing Date: Fri, 22 Feb 2019 15:17:55 +0200 Message-ID: <838sy8ezcs.fsf@gnu.org> References: <8736ogjgj2.fsf@gmail.com> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="102975"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 22 14:26:20 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxAqI-000Qg8-Ol for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Feb 2019 14:26:18 +0100 Original-Received: from localhost ([127.0.0.1]:50557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxAqH-0001hR-Kl for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Feb 2019 08:26:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxApA-0000pg-SD for help-gnu-emacs@gnu.org; Fri, 22 Feb 2019 08:25:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxAiC-00013B-Bw for help-gnu-emacs@gnu.org; Fri, 22 Feb 2019 08:17:59 -0500 Original-Received: from [176.228.60.248] (port=2471 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gxAiA-0008Ab-QC for help-gnu-emacs@gnu.org; Fri, 22 Feb 2019 08:17:55 -0500 In-reply-to: <8736ogjgj2.fsf@gmail.com> (message from Amos Bird on Fri, 22 Feb 2019 17:53:21 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119520 Archived-At: > From: Amos Bird > Date: Fri, 22 Feb 2019 17:53:21 +0800 > > When opening a ~40MB zip file in emacs, it takes 5 seconds to load > the dired-like buffer. I just tried this with a 49MB zip file, and it took me less than 2 sec. I tried a 495MB file, and it took 5.5 sec to show the listing. Do you see those 5 sec in "emacs -Q"? If so, is your box particularly slow? > However, `7z l ` returns instantly. Is it possible to > customize auto-compress-mode so that only file listing is applied > instead of fully decompression? If you are talking about arc-mode.el, it already decodes only the directory part of the zip file, without uncompressing the entire archive. It's definitely slower than 7z, because the decoding is done in Lisp, so if we want to speed it up even further, I'd suggest to write a module in C. However, I wonder why you see such a long time.