Slow GIF coder in 6.4.0/6.4.1
Posted: 2008-05-11T09:19:26-07:00
I've been seeing a 14x increase in the time it takes to write a GIF file starting in late 6.4.0 and now in 6.4.1. I'm running ImageMagick on 32-bit Ubuntu running in a VMWare Fusion virtual machine on an Intel iMac, OS X 10.5.2. My test input image is http://home.nc.rr.com/foxhunter/test.miff. Please let me know if you need any more information.
Using 6.3.9, I timed converting the test image to GIF, and then again to PNG to give some context.
Here's the same conversions using 6.4.0-11. Nothing changes except the version of ImageMagick. ~40 seconds seems excessive for a 200x200 image:
And, for one more data point, the same conversions using 6.0.0.
Code: Select all
tim@linux:~/RMagick/projects/RMagick/doc/ex$ identify test.miff
test.miff MIFF 200x200+0+0 DirectClass 16-bit 235kb 0.000u 0:01
Code: Select all
tim@linux:~/RMagick/projects/RMagick/doc/ex$ convert -version
Version: ImageMagick 6.3.9 03/23/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
tim@linux:~/RMagick/projects/RMagick/doc/ex$ time convert test.miff test.gif
real 0m2.799s
user 0m2.628s
sys 0m0.128s
tim@linux:~/RMagick/projects/RMagick/doc/ex$ time convert test.miff test.png
real 0m0.049s
user 0m0.024s
sys 0m0.024s
Code: Select all
tim@linux:~/RMagick/projects/RMagick/doc/ex$ convert -version
Version: ImageMagick 6.4.0 04/27/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
tim@linux:~/RMagick/projects/RMagick/doc/ex$ time convert test.miff test.gif
real 0m39.869s
user 0m39.430s
sys 0m0.040s
tim@linux:~/RMagick/projects/RMagick/doc/ex$ time convert test.miff test.png
real 0m0.082s
user 0m0.032s
sys 0m0.016s
Code: Select all
tim@linux:~/RMagick/projects/RMagick/doc/ex$ convert -version
Version: ImageMagick 6.0.0 08/22/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
tim@linux:~/RMagick/projects/RMagick/doc/ex$ time convert test.miff test.gif
real 0m2.467s
user 0m2.312s
sys 0m0.024s
tim@linux:~/RMagick/projects/RMagick/doc/ex$ time convert test.miff test.png
real 0m0.085s
user 0m0.032s
sys 0m0.020s