Hello,
I've edited the statistic.c source file, more specifically the GetImageChannelDepth function, providing a multithreaded version for this function (using OpenMP). Verifying the improvement of performance, I've noticed a speedup of up to 3.6 times on a quad-core machine, just using the tests that are included in the "make check" test cases.
http://rapidshare.com/files/113480058/s ... patch.html
GetImageChannelDepth parallel patch
Re: GetImageChannelDepth parallel patch
Excellant. Thanks for the patch. We'll get it into ImageMagick 6.4.1-2 Beta by sometime tomorrow.
Re: GetImageChannelDepth parallel patch
We had to patch your patch. AcquireImagePixels() is not thread safe. We used a cache view instead. See http://www.imagemagick.org/script/archi ... hp#threads for a discussion.
-
cmvieira
Re: GetImageChannelDepth parallel patch
Ok,
Sorry for this bug
and thanks for reviewing the patch.
Sorry for this bug
and thanks for reviewing the patch.
Who is online
Users browsing this forum: No registered users and 8 guests