GNU bug report logs -
#51763
27.2; Displaying many images take all memory
Previous Next
Full log
View this message in rfc822 format
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.