[babl] babl: search depth of 2 and 4, instead of 2 and 5
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl: search depth of 2 and 4, instead of 2 and 5
- Date: Sat, 23 May 2020 16:58:31 +0000 (UTC)
commit 9ebe30e43559d24865f6ba5c32c6b2d07a9ef3b1
Author: Øyvind Kolås <pippin gimp org>
Date: Sat May 23 18:53:36 2020 +0200
babl: search depth of 2 and 4, instead of 2 and 5
Conversions needed for color management in GIMP are not feasible in 2
steps, searching 5 deep for commonly used conversions causes severe UI
stalls, lowering the max search depth to 4 avoids this regression
introduced in 51437f216dbbef80f9bf661dd152452083119349, while keeping
the speed-up for other cases.
babl/babl-fish-path.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c
index 7a55d4449..ab4361683 100644
--- a/babl/babl-fish-path.c
+++ b/babl/babl-fish-path.c
@@ -603,10 +603,10 @@ babl_fish_path2 (const Babl *source,
get_conversion_path (&pc, (Babl *) source, 0, max_path_length (), tolerance);
- /* attempt with path length + 3 */
+ /* attempt with path length + 2 */
if (babl->fish_path.conversion_list->count == 0)
{
- int max_length = max_path_length () + 3;
+ int max_length = max_path_length () + 2;
if (max_length > BABL_HARD_MAX_PATH_LENGTH)
max_length = BABL_HARD_MAX_PATH_LENGTH;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]