Subject: bug#61763: 30.0.50; Image Cache Size growth

From: Eli Zaretskii <[email-masked]>
Date: Fri, 24 Feb 2023 19:12:43 +0200

> Date: Fri, 24 Feb 2023 18:00:00 +0100
> From:  Manuel Giraud via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> My image cache size grows really quick when browsing some images from
> Emacs.  My recipe:
> 
>         emacs -Q
>         M-: (clear-image-cache)
>         Then, I open a image in a directory with other images.
>         I hit 'n' 5 times (to open next 5 images).
>         Each image is a JPG of about 1.3MiB.
>         Then, M-x memory-report says:
>            366 MiB  Total Image Cache Size
> 
> With such growth, Emacs quickly tells me that the memory is exhausted.

Did you try to lower the value of image-cache-eviction-delay?