DPX saving is slow

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
aziwoqpd

DPX saving is slow

Post by aziwoqpd »

After upgrading from 6.3.5-3 to 6.4.1-5, saving DPX files has become almost 10 times slower! All of the other file formats I use seem to still be the same speed, though. Has something changed recently?

Here's a sample program:

Code: Select all

int main()
{
	Magick::InitializeMagick( NULL );
	Magick::Image img( Magick::Geometry( 2048, 1556 ), Magick::ColorGray( 0 ) );
	img.depth( 10 );
	img.addNoise(Magick::GaussianNoise);
	time_t ttt = time( NULL );
	for( int c=0 ; c<50 ; c++ ) {
		std::stringstream sss;
		sss << "test";
		sss << c;
		sss << ".dpx";
		img.write( sss.str() );
	}
	printf( "%d\n", time(NULL)-ttt );
	return 0;
}
For Imagemagick 6.3.5-3 this takes 5 seconds. With Imagemagick 6.4.1-5 it takes 41 seconds. I'm using the Windows build, if it makes a difference.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: DPX saving is slow

Post by fmw42 »

I am having trouble with long delays in converting to GIF. Anyone else?

see viewtopic.php?f=3&t=11388
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: DPX saving is slow

Post by magick »

Timing tests show the majority of the time is spent generating noise. We will have a patch for this problem within the next few days. Thanks.
aziwoqpd

Re: DPX saving is slow

Post by aziwoqpd »

Sorry, the timing for the above is excluding the noise generation. I just added that in when I was testing something with compressed files and forgot to remove it. The large difference in speed remains even if you remove the noise generation.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: DPX saving is slow

Post by magick »

We're still investigating but our initial test under Redhat Linux shows that ImageMagick 6.3.5 is slightly slower (19 seconds to write 50 DPX images) than 6.4.1-5 (17 seconds). We'll try the timing under Windows in the next few days.
Post Reply