]> git.eshelyaron.com Git - emacs.git/commit
Speed up GIF animations
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 11 Apr 2022 12:38:27 +0000 (14:38 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 11 Apr 2022 12:38:27 +0000 (14:38 +0200)
commit8b7aaf3e56c63cae7e2affc249179e5022451595
tree9dd4d6d8323d4946f070161d996dea0fdd856ff6
parent5141234acf85fe232adcaa3b0278f7766eb0d250
Speed up GIF animations

* src/image.c (anim_prune_animation_cache): Tweak the destructor
API.
(gif_destroy): New function.
(gif_load): Use a cache to avoid quadratic CPU usage for animated
images (bug#45224).
(webp_destroy): New function.
(webp_load): Use it.
src/image.c