[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33275: 27.0.50; Image cache pruning
From: |
Lars Ingebrigtsen |
Subject: |
bug#33275: 27.0.50; Image cache pruning |
Date: |
Mon, 05 Nov 2018 18:48:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Or does Emacs have weak hashes? In which case the image cache could be
> a weak hash and the problem would resolve itself?
Emacs does have weak hashes... Hm...
Anyway, there's code that tries to keep the cache small:
/* If the number of cached images has grown unusually large,
decrease the cache eviction delay (Bug#6230). */
delay = XFIXNUM (Vimage_cache_eviction_delay);
if (nimages > 40)
delay = 1600 * delay / nimages / nimages;
But it works solely on the number of images in the cache, and not the
size of the images. So it's a heuristic that could be tweaked pretty
easily, I think?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#33275: 27.0.50; Image cache pruning, Lars Ingebrigtsen, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Eli Zaretskii, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Lars Ingebrigtsen, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Eli Zaretskii, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Lars Ingebrigtsen, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Eli Zaretskii, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Lars Ingebrigtsen, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning,
Lars Ingebrigtsen <=
- bug#33275: 27.0.50; Image cache pruning, Eli Zaretskii, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Eli Zaretskii, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Lars Ingebrigtsen, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Eli Zaretskii, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Lars Ingebrigtsen, 2018/11/09
- bug#33275: 27.0.50; Image cache pruning, Eli Zaretskii, 2018/11/06
- bug#33275: 27.0.50; Image cache pruning, Lars Ingebrigtsen, 2018/11/09
- bug#33275: 27.0.50; Image cache pruning, Eli Zaretskii, 2018/11/10
- bug#33275: 27.0.50; Image cache pruning, Eli Zaretskii, 2018/11/05
- bug#33275: 27.0.50; Image cache pruning, Lars Ingebrigtsen, 2018/11/05