Page 1 of 1

"-debug" slows down GIF output

Posted: 2010-07-14T12:33:28-07:00
by Drarakel
Usually, "-debug" has no big significance on the speed of an ImageMagick command (especially when there are no debug messages to print). Example:

Code: Select all

convert -depth 8 -size 1000x2000 xc:blue test.tif
convert -debug annotate -depth 8 -size 1000x2000 xc:blue test.tif
Both commands are very quick. :) But now with GIF:

Code: Select all

convert -depth 8 -size 1000x2000 xc:blue test.gif
convert -debug annotate -depth 8 -size 1000x2000 xc:blue test.gif
The second command is veery slow on my system. Seems odd!? If I increase the GIF size furthermore, I even have to kill the process sometimes when using a "-debug" option.
It seems to be.. delayed mostly at a RelinquishMagicResource method at the end (or is it the one that follows?):

Code: Select all

convert -debug all -depth 8 -size 1000x2000 xc:blue test.gif
...
2010-07-14T21:09:32+02:00 0:00.937 0.891u 6.6.3 Resource Magick[1060]: resource.c/RelinquishMagickResource/801/Resource
Memory: 16MB/19.07MiB/11.997GiB

2010-07-14T21:10:31+02:00 1:00.250 58.750u 6.6.3 Cache Magick[1060]: cache.c/DestroyPixelCache/1608/Cache
destroy test.gif[0]
2010-07-14T21:10:31+02:00 1:00.250 58.750u 6.6.3 Resource Magick[1060]: resource.c/RelinquishMagickResource/801/Resource
Memory: 20MB/0B/11.997GiB

Again with IM v6.6.3-0 Q16, Windows XP.

Re: "-debug" slows down GIF output

Posted: 2010-07-25T09:14:20-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.6.3-1, available by sometime tomorrow. Thanks,

Re: "-debug" slows down GIF output

Posted: 2010-07-29T00:35:23-07:00
by Drarakel
Works good now. Thanks again!