From: Andreas Politz <politza@hochschule-trier.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: AW: Re: AW: Re: Free images based on allocated memory
Date: Mon, 04 Feb 2019 17:42:32 +0100 [thread overview]
Message-ID: <p71wiawkh4v3js15ls8l6v3k.1549298138892@email.android.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]
The patch limits the amount of memory Emacs may use for an image-cache. This if what my users want and it means I don't have to implement it in Lisp. So, given the cache has still vacancy left, I can preload not yet displayed images into it knowing they stay there. Using the existing time-based mechanism doesn't really work here: Either the limit is to short and thus pre-loaded images are evicted before they can be displayed. Or it is to long and the image-cache becomes undesirable large.
---
I use data-strings as basis for the image-descriptor, rather than files. In some scenarios multiple descriptor share their image-data. Since images can't be flushed based on the data property (as opposed to the file one), I would have to keep track of these dependencies between descriptor and data, since my own cache stores these data strings and not the actual images.
Andreas
[-- Attachment #2: Type: text/html, Size: 1110 bytes --]
next reply other threads:[~2019-02-04 16:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-04 16:42 Andreas Politz [this message]
2019-02-04 18:17 ` AW: Re: AW: Re: Free images based on allocated memory Eli Zaretskii
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=p71wiawkh4v3js15ls8l6v3k.1549298138892@email.android.com \
--to=politza@hochschule-trier.de \
--cc=eliz@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.