[gegl/wip/threaded-dup-input: 4/4] Bug 791424 - multithreading slows down color to grey



commit 9ea74fc3a70b008231f2a6c558d5603db70f6090
Author: Ell <ell_se yahoo com>
Date:   Wed Dec 13 03:53:27 2017 -0500

    Bug 791424 - multithreading slows down color to grey
    
    After the last commit, reenabling multithreading for c2g makes it
    notably faster when GEGL_THREADS>1 (however, it only brings it on-
    par to GEGL_THREADS=1.)
    
    This reverts commit 58fcebb96505459c9aa29f910f04315d988e9c0c.

 operations/common/c2g.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/operations/common/c2g.c b/operations/common/c2g.c
index 4330594..73b647f 100644
--- a/operations/common/c2g.c
+++ b/operations/common/c2g.c
@@ -375,13 +375,8 @@ gegl_op_class_init (GeglOpClass *klass)
   operation_class = GEGL_OPERATION_CLASS (klass);
   filter_class    = GEGL_OPERATION_FILTER_CLASS (klass);
 
-  filter_class->process     = process;
-  operation_class->prepare  = prepare;
-  /* This operation is already quite slow, but it is terrible when
-   * multi-threaded. Disable multi-threading until we optimize it.
-   * See https://bugzilla.gnome.org/show_bug.cgi?id=791424
-   */
-  operation_class->threaded = FALSE;
+  filter_class->process    = process;
+  operation_class->prepare = prepare;
 
   /* we override defined region to avoid growing the size of what is defined
    * by the filter. This also allows the tricks used to treat alpha==0 pixels


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]