emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 5141234acf: Refactor the webp cache code to allow usage by gi


From: Po Lu
Subject: Re: master 5141234acf: Refactor the webp cache code to allow usage by gif_load, too
Date: Mon, 11 Apr 2022 21:12:09 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> For the imagemagick cache, we're just using a cookie, that's basically
> what we're doing here, too.  Perhaps sxhashing the spec and using that
> instead would be fine, but it's slower, and we don't really care that
> much about correctness here -- we're just using this to speed things up,
> after all.

Why not put something like this inside mark_image_cache?

#if defined HAVE_WEBP || defined HAVE_GIF
for (struct anim_cache *cache = anim_cache;
     cache; cache = cache->next)
  mark_object (cache->spec);
#endif


reply via email to

[Prev in Thread] Current Thread [Next in Thread]