Subject: Re: bug#38187: 27.0.50; No mouse-wheel scaling on images

From: Eli Zaretskii <[email-masked]>
Date: Fri, 22 Nov 2019 09:31:40 +0200

> From: Lars Ingebrigtsen <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>,  [email-masked],  [email-masked]
> Date: Thu, 21 Nov 2019 22:26:30 +0100
> 
> (dolist (file (directory-files dir-with-lots-of-images))
>   (erase-buffer)
>   (insert-image (create-image file)))
> 
> You get the same effect by altering the scaling factor, I think?  Each
> scaled image is cached?  So by rolling the wheel ten clicks you get ten
> cached copies of the image.

Again, does binding redisplay-dont-pause to nil help in any way here?

> A better eviction algorithm would be nice.

Such an algorithm would need to detect these "useless" cached images
to be effective.