unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: make auto-compress-mode only listing tarballs instead of depressing
Date: Fri, 22 Feb 2019 15:17:55 +0200	[thread overview]
Message-ID: <838sy8ezcs.fsf@gnu.org> (raw)
In-Reply-To: <8736ogjgj2.fsf@gmail.com> (message from Amos Bird on Fri, 22 Feb 2019 17:53:21 +0800)

> From: Amos Bird <amosbird@gmail.com>
> 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 <tarball>` 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.



      reply	other threads:[~2019-02-22 13:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-22  9:53 make auto-compress-mode only listing tarballs instead of depressing Amos Bird
2019-02-22 13:17 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838sy8ezcs.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).