]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 30 Oct 2012 21:30:14 +0000 (21:30 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 30 Oct 2012 21:30:14 +0000 (21:30 +0000)
MagickCore/thread-private.h

index 0a56e154c6e5b398412f4249174274de5f3cd093..24e66a57a838f29674363958fafe3347e32c8446 100644 (file)
@@ -35,7 +35,8 @@ extern "C" {
       ((rows) > WorkloadThreshold()))) && ((MagickSizeType) \
       ((columns)*(rows)) > (WorkloadThreshold()*WorkloadThreshold())) && \
       (expression)) \
-    num_threads(GetMagickResourceLimit(ThreadResource))
+    num_threads(GetMagickResourceLimit(ThreadResource)/ \
+      (GetImagePixelCacheType(image) == DiskCache ? 2 : 1))
 
 #if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 10))
 #define MagickCachePrefetch(address,mode,locality) \