Subject: bug#56546: 29.0.50; unbounded RAM comsumption when displaying images

From: Eli Zaretskii <[email-masked]>
Date: Thu, 14 Jul 2022 13:10:04 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Thu, 14 Jul 2022 12:01:16 +0200
> 
> Lars Ingebrigtsen <[email-masked]> writes:
> 
> > But we can at least include the size of the main data blob (e.g., the
> > .webp data itself); we know the size of that for all the anim caches.
> 
> No, not even that -- the cache is pretty opaque in general.  Hm...

Don't we allocate memory for the cached stuff?  If so, we could count
the bytes there, and record them in the cache itself.