[gs-cvs] rev 8534 - branches/mtrender/src

ray at ghostscript.com ray at ghostscript.com
Tue Feb 19 00:22:12 PST 2008


Author: ray
Date: 2008-02-19 00:22:12 -0800 (Tue, 19 Feb 2008)
New Revision: 8534

Modified:
   branches/mtrender/src/gsccolor.h
Log:
Reduce the default number of colorant components (temporarily) for this
branch. Using 252 colorants is less efficient and causes stack overflows
with multi-threaded rendering on Windows in files with transparency.
Allocating large structures on the stack is generally a bad idea.




Modified: branches/mtrender/src/gsccolor.h
===================================================================
--- branches/mtrender/src/gsccolor.h	2008-02-19 08:17:42 UTC (rev 8533)
+++ branches/mtrender/src/gsccolor.h	2008-02-19 08:22:12 UTC (rev 8534)
@@ -31,7 +31,7 @@
  * hexachrome DeviceN color spaces.  It is currently set to the same
  * value as Adobe CPSI can handle 
  */
-#define GS_CLIENT_COLOR_MAX_COMPONENTS (252)
+#define GS_CLIENT_COLOR_MAX_COMPONENTS (6)
 
 /* Paint (non-Pattern) colors */
 typedef struct gs_paint_color_s {



More information about the gs-cvs mailing list