"-debug" slows down GIF output

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

"-debug" slows down GIF output

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: "-debug" slows down GIF output

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.6.3-1, available by sometime tomorrow. Thanks,
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: "-debug" slows down GIF output

Post by Drarakel »

Works good now. Thanks again!
Post Reply