Re: 6.5.5 much slower than 6.3.6

Arkadiy Kulev <[email protected]> Fri, 2 Oct 2009 01:16:48 +0400
Newsgroups gmane.comp.video.image-magick.bugs
Message-ID <[email protected]>
Hello duc,


Here is the line I get from the freebsd 7.0 system (ps aux | grep http):
web      8140 11.2  0.6 28876 20540  ??  RN    1:08AM   0:35.20 /home/storage/node/img_node_err.pl (httpd)

(Version: ImageMagick 6.3.6 04/03/08 Q16 http://www.imagemagick.org)


And here is the line I get from the freebsd 7.2 system (ps aux | grep http):
web     86711 20.0  0.6 92040 20736  ??  RN    1:12AM   0:07.61 /home/storage/node/img_node_err.pl (httpd)

(Version: ImageMagick 6.5.5-7 2009-10-01 Q16 http://www.imagemagick.org)

Please notice the difference in memory usage. Somehow, the 7.0
(6.3.6) manages to perform the ImagetoBlob-gif function without heavy
overload on the memory.

What can this be?






Thursday, October 1, 2009, 9:51:21 PM, you wrote:

>> print $image->ImageToBlob(magick => 'gif');

> GIF forces a colormap and the color reduction algorithm is memory intensive.
> See http://www.imagemagick.org/script/quantize.php.  Also, don't forget that
> images stay in memory in perl unless they go out of scope or are explicitedly
> undef'ed, see
> http://www.imagemagick.org/script/perl-magick.php#overview.



Arkadiy Kulev                         mailto:[email protected]
+7 495 5070602
Moscow, Russia