GNU bug report logs - #51763
27.2; Displaying many images take all memory

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thievol <at> posteo.net>

Date: Thu, 11 Nov 2021 09:07:02 UTC

Severity: normal

Found in version 27.2

Full log


Message #17 received at 51763 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Thierry Volpiatto <thievol <at> posteo.net>
Cc: 51763 <at> debbugs.gnu.org
Subject: Re: bug#51763: 27.2; Displaying many images take all memory
Date: Thu, 11 Nov 2021 09:33:32 -0800
Thierry Volpiatto <thievol <at> posteo.net> writes:

>> AFAIU, calling `clear-image-cache' should also the free memory unless we
>> have a memory leak.  You could also call this function from your code.
>> Does calling this function free the memory for you?
>
> Yes it does 🙂.  I didn't know this function (BTW what about renaming to
> `image-clear-cache`), works great with my code, perhaps you can do the
> same in dired (we use more or less similar code).

Great!  For now, this is just a temporary workaround for high memory
usage, so I'd personally be more inclined to work on the underlying
issue than adding it to Image-Dired.

I also believe that you will want to revisit the decision to use it once
this bug is fixed: it is a bit of a sledgehammer and can lead to
undesirable results (slowdowns).

As for renaming it to `image-clear-cache', I think it would be good but
let's see if anyone else thinks otherwise.




This bug report was last modified 3 years and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.