GNU bug report logs - #33275
27.0.50; Image cache pruning

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Mon, 5 Nov 2018 14:09:02 UTC

Severity: normal

Tags: fixed

Found in version 27.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 33275 <at> debbugs.gnu.org
Subject: bug#33275: 27.0.50; Image cache pruning
Date: Fri, 09 Nov 2018 13:22:08 +0100
(Sorry for the late response; things got in the way as usual...)

Eli Zaretskii <eliz <at> gnu.org> writes:

>> `image-size' didn't use to cache images, but was introduced as an
>> optimisation.
>
> And that optimization had a reason, right?

Yeah, the normal use case when you're doing images is that you're going
to end up displaying it.  And `image-size' has to render the image to
see how big it is, so during normal usage, having `image-size' cache the
image is a big win.

Hm...  Perhaps `image-size' should just have a DONT-CACHE optional
parameter?

> Btw, why doesn't xmalloc return NULL in your case before invoking the
> OOM killer?  Is that expected behavior on GNU/Linux systems?

No, you've got overcommit on Linux, so you often don't get a NULL when
you need it...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 239 days ago.

Previous Next


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