[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61763: 30.0.50; Image Cache Size growth
From: |
Manuel Giraud |
Subject: |
bug#61763: 30.0.50; Image Cache Size growth |
Date: |
Fri, 24 Feb 2023 22:32:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
[...]
> JPEG compression is very good, it routinely compresses images with
> ratios of 10:1 to 20:1. If I use djpeg to convert the 2 MiB images I
> used into BMP, I get 36 MiB BMP files -- that's a 1:18 expansion
> ratio. And Emacs converts each image to a pixmap for display, which
> is basically similar to what I did. Multiply that by 20 or 30, and
> you get the numbers you see, I think.
Yes, one of the images I'm using is 3264 by 2448 pixels times 3 octets
(RGB, I guess) and we get about 23MiB... so those numbers seems ok.
> The solution is to enlarge the VM for your machine (by enlarging swap,
> for example). If you don't keep those images displayed in windows,
> lowering image-cache-eviction-delay might also help.
In image.c line 2079, there is already a mecanism to automatically lower
this delay if the cache has grown large (so I think we're covered here).
But OTOH, at line 3010, we can see that this cache will grow no matter
what. Maybe we should have parameter (maybe a custom) that limit this
growth up to a certain point and then start uncaching older images.
WDYT?
--
Manuel Giraud
- bug#61763: 30.0.50; Image Cache Size growth, Manuel Giraud, 2023/02/24
- bug#61763: 30.0.50; Image Cache Size growth, Eli Zaretskii, 2023/02/24
- bug#61763: 30.0.50; Image Cache Size growth, Manuel Giraud, 2023/02/24
- bug#61763: 30.0.50; Image Cache Size growth, Eli Zaretskii, 2023/02/24
- bug#61763: 30.0.50; Image Cache Size growth, Manuel Giraud, 2023/02/24
- bug#61763: 30.0.50; Image Cache Size growth, Eli Zaretskii, 2023/02/24
- bug#61763: 30.0.50; Image Cache Size growth,
Manuel Giraud <=
- bug#61763: 30.0.50; Image Cache Size growth, Eli Zaretskii, 2023/02/25
- bug#61763: 30.0.50; Image Cache Size growth, Manuel Giraud, 2023/02/25
- bug#61763: 30.0.50; Image Cache Size growth, Eli Zaretskii, 2023/02/25