aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2013-08-19 13:47:27 -0700
committerPaul Eggert2013-08-19 13:47:27 -0700
commitbb566ceafe3230d55923cb3043c3b231e4b9c0f9 (patch)
tree813650378c30dc75d9493acd1909a868512859bc /src/ChangeLog
parent453f40228f8ff3d43665f5bf008b117bf9b9a7dc (diff)
downloademacs-bb566ceafe3230d55923cb3043c3b231e4b9c0f9.tar.gz
emacs-bb566ceafe3230d55923cb3043c3b231e4b9c0f9.zip
* image.c: Shrink memory needed for animation cache.
(SIGNATURE_DIGESTSIZE): New constant. (struct animation_cache): Make 'signature' a fixed size array of bytes. (imagemagick_create_cache): Copy the signature. This saves several KB of memory that ImageMagick wastes per signature. Don't bother updating the update_time, as the caller does that now. (imagemagick_prune_animation_cache): Don't destroy the signature, as it's a fixed size struct member now. (imagemagick_get_animation_cache): Always destroy the signature, as it's now imagemagick_create_cache's responsibility to copy it. Avoid duplicate calls to strcmp and to imagemagick_create_cache, and use memcmp rather than strcmp. eassert that ImageMagick returns a signature of the specified length.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2171f2b8748..d0bafd3914e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,19 @@
12013-08-19 Paul Eggert <eggert@cs.ucla.edu>
2
3 * image.c: Shrink memory needed for animation cache.
4 (SIGNATURE_DIGESTSIZE): New constant.
5 (struct animation_cache): Make 'signature' a fixed size array of bytes.
6 (imagemagick_create_cache): Copy the signature. This saves
7 several KB of memory that ImageMagick wastes per signature.
8 Don't bother updating the update_time, as the caller does that now.
9 (imagemagick_prune_animation_cache): Don't destroy the signature, as
10 it's a fixed size struct member now.
11 (imagemagick_get_animation_cache): Always destroy the signature,
12 as it's now imagemagick_create_cache's responsibility to copy it.
13 Avoid duplicate calls to strcmp and to imagemagick_create_cache,
14 and use memcmp rather than strcmp.
15 eassert that ImageMagick returns a signature of the specified length.
16
12013-08-19 Lars Magne Ingebrigtsen <larsi@gnus.org> 172013-08-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 18
3 * image.c (imagemagick_get_animation_cache): Don't segfault on 19 * image.c (imagemagick_get_animation_cache): Don't segfault on