From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Camm Maguire <camm@maguirefamily.org>
Cc: emacs-devel@gnu.org
Subject: Re: fast image paging
Date: Wed, 13 Nov 2013 11:49:23 -0500 [thread overview]
Message-ID: <jwv38n09rpj.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87mwlabt0w.fsf@happiness.m.enhanced.com> (Camm Maguire's message of "Mon, 11 Nov 2013 15:08:47 -0500")
> Greetings! I have a djvu mode which is designed for scholars reading,
> annotating, and cross-referencing many large documents. Right now I use
> pbm formats and create-image. This makes it easy to highlight and
> correlate pixels with text, but the images can get quite large, making
> handling sluggish on slower machines.
> Will I improve anything here using a compressed format like png? Or,
> when emacs displays and moves the image, does it decompress the image
> anyway into the same sized internal data structure?
I don't know the precise details, but I think that if you use PNG you
won't gain much because indeed, the png library will begin by
decompressing the image and keeping it that way in memory.
You might have better luck if you use the `imagemagick' image type,
which might be able to render dejavu directly (i.e. without going
through pbm/png/...), so only the current page is kept in decompressed
bitmap form.
IIRC last time someone tried to use it there were some problems
(performance, maybe?). Those problems may have been fixed since,
I can't remember. It's definitely worth a try, I think, tho.
And I'd be very happy to see your mode in GNU ELPA, so if you're
interested in submitting it for inclusion, send me an email,
Stefan
next prev parent reply other threads:[~2013-11-13 16:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-11 20:08 fast image paging Camm Maguire
2013-11-13 16:49 ` Stefan Monnier [this message]
2013-11-13 18:41 ` joakim
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=jwv38n09rpj.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=camm@maguirefamily.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.