From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.devel Subject: Re: DJVU files and ImageMagick Date: Sun, 03 Feb 2019 20:30:48 -0600 Message-ID: <87va201e07.fsf@gnu.org> References: <87zhrdn8lf.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="26170"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 04 03:31:41 2019 Return-path: Envelope-to: ged-emacs-devel@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 1gqU2u-0006gd-F1 for ged-emacs-devel@m.gmane.org; Mon, 04 Feb 2019 03:31:40 +0100 Original-Received: from localhost ([127.0.0.1]:34861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqU2t-0007Ef-Fo for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2019 21:31:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqU2H-0007EZ-4W for emacs-devel@gnu.org; Sun, 03 Feb 2019 21:31:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqU2F-0003ho-FQ for emacs-devel@gnu.org; Sun, 03 Feb 2019 21:31:01 -0500 Original-Received: from [195.159.176.226] (port=38132 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gqU2F-0003hQ-8e for emacs-devel@gnu.org; Sun, 03 Feb 2019 21:30:59 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gqU2D-0005xf-6f for emacs-devel@gnu.org; Mon, 04 Feb 2019 03:30:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:UJNNnH7PwUGsblBp7y3jGcTSWtQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232949 Archived-At: 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