all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* AW: Re: AW: Re: Free images based on allocated memory
@ 2019-02-04 16:42 Andreas Politz
  2019-02-04 18:17 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Politz @ 2019-02-04 16:42 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-04 18:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-04 16:42 AW: Re: AW: Re: Free images based on allocated memory Andreas Politz
2019-02-04 18:17 ` Eli Zaretskii

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.