From 9ebe30e43559d24865f6ba5c32c6b2d07a9ef3b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sat, 23 May 2020 18:53:36 +0200 Subject: [PATCH] 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 7a55d44..ab43616 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; -- 2.30.2