all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roland Winkler <winkler@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: DJVU files and ImageMagick
Date: Sun, 03 Feb 2019 20:30:48 -0600	[thread overview]
Message-ID: <87va201e07.fsf@gnu.org> (raw)
In-Reply-To: 87zhrdn8lf.fsf@gmx.net

On Sat, Feb 02 2019, Stephen Berman wrote:
> I build Emacs from master with ImageMagick support, but if I try to
> visit a DJVU file (e.g. a ca. 200 page book of about 1.5 MB),
> immediately almost all my system's RAM is consumed, bringing Emacs to a
> halt, so it doesn't display the file, and I can recover the memory only
> by killing Emacs.

I am just curious: why are all pages converted immediately to emacs'
internal format upon loading a multipage document (be it a djvu document
or any other format)?  This sounds like a misfeature to me.  I am not
surprised this quickly consums all available memory, say, if you wanted
to work with multiple djvu documents simultaneously.

The djvu package from GNU Elpa uses the command line tool ddjvu from
djvulibre to convert only the one page that is currently displayed.
This approach is very fast in my experience, and it is obviously by far
less demanding when working with many "many-pages" documents.

> (I normally view DJVU files in Emacs using the djvu package from ELPA

Really?  Hooray, someone else is using this package, too.  I thought I
was the very only one.

Roland




  parent reply	other threads:[~2019-02-04  2:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-02 22:12 DJVU files and ImageMagick Stephen Berman
2019-02-03 17:12 ` Eli Zaretskii
2019-02-03 21:48   ` joakim
2019-02-04  2:30 ` Roland Winkler [this message]
2019-02-04  7:18   ` Colin Baxter
2019-02-04 17:34   ` Stephen Berman
2019-02-06  3:53     ` Roland Winkler
2019-02-06  5:30       ` Drew Adams
2019-02-06 16:35         ` Roland Winkler
2019-02-06  8:45       ` Stephen Berman

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

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

  git send-email \
    --in-reply-to=87va201e07.fsf@gnu.org \
    --to=winkler@gnu.org \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.