From: Cristy Date: Wed, 2 Aug 2017 15:18:29 +0000 (-0400) Subject: Threading the colormap is not efficien-- instead use a sequential loop X-Git-Tag: 7.0.6-5~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbb0c5cc6296693f0c1df730c6cdb66d81a50284;p=imagemagick Threading the colormap is not efficien-- instead use a sequential loop --- diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index 32d9fd7e2..0c96da62e 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -308,11 +308,6 @@ MagickExport size_t GetImageDepth(const Image *image,ExceptionInfo *exception) if ((image->storage_class == PseudoClass) && (image->alpha_trait == UndefinedPixelTrait)) { -#if defined(MAGICKCORE_OPENMP_SUPPORT) - #pragma omp parallel for schedule(static,4) shared(status) \ - if ((image->colors) > 256) \ - num_threads(GetMagickResourceLimit(ThreadResource)) -#endif for (i=0; i < (ssize_t) image->colors; i++) { const int