[gegl] Bug 783203 - Transform ops are opting out of multi-threading
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Bug 783203 - Transform ops are opting out of multi-threading
- Date: Wed, 13 Dec 2017 23:23:38 +0000 (UTC)
commit fbff27366db93369ee44b8388fbac8875c7c067a
Author: Ell <ell_se yahoo com>
Date: Wed Dec 13 03:46:50 2017 -0500
Bug 783203 - Transform ops are opting out of multi-threading
After the last commit, multithreaded transform ops are faster than
single threaded, so reenable multithreading.
Note that this doesn't necessarily mean that the transform ops are
faster when using GEGL_THREADS>1, rather than GEGL_THREADS=1,
only that *when* GEGL_THREADS>1, the multithreaded version is
faster than the single threaded one. However, GEGL_THREADS>1 seems
to be consistently faster than GEGL_THREADS=1 when using a non-
nearest sampler.
This reverts commit b54454fd225c5a807b680dc1be14cba62acfafd7.
operations/transform/transform-core.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 3bf04e5..7802c9e 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -169,9 +169,7 @@ op_transform_class_init (OpTransformClass *klass)
op_class->process = gegl_transform_process;
op_class->prepare = gegl_transform_prepare;
op_class->no_cache = TRUE;
- op_class->threaded = FALSE; // XXX : at the moment threading
- // produces right result but
- // slows down most transform - and significantly slows down
scale
+ op_class->threaded = TRUE;
klass->create_matrix = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]