emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Free images based on allocated memory


From: Stefan Monnier
Subject: Re: Free images based on allocated memory
Date: Wed, 30 Jan 2019 04:40:54 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Recently there was a discussion about how to limit the amount of memory
> the pdf-tools package uses by means of the image-cache.

The same problem affects doc-view, BTW.

> For this I've added a draft patch, which has some drawbacks:
> 1. The accounting is frame-local, which means the cache could still grow
>    unbounded as a function of the number of frames.

Why do you keep the counter in the frame/cache rather than in (say)
a global variable or inside the terminal object?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]