From cb27fba5ab830ac446ce234ec187545167403d5d Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 31 Dec 2021 22:57:54 -0500 Subject: [PATCH] Attempted another optimization to speed up the short-finding algorithm, but it's clear it needs a lot more than that. --- select/selOps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/select/selOps.c b/select/selOps.c index a0f0cc64..69f409bf 100644 --- a/select/selOps.c +++ b/select/selOps.c @@ -488,6 +488,7 @@ donesides: { tp = SelectDef->cd_planes[p]->pl_hint; GOTOPOINT(tp, &tile->ti_ll); + SelectDef->cd_planes[p]->pl_hint = tp; if (tp->ti_client == (ClientData)CLIENTDEFAULT) continue; if ((int)tp->ti_client < mincost) { @@ -765,6 +766,7 @@ donesrch: { tp = SelectDef->cd_planes[p]->pl_hint; GOTOPOINT(tp, &tile->ti_ll); + SelectDef->cd_planes[p]->pl_hint = tp; if (TiGetTypeExact(tp) != TT_SPACE) { sd = NewSD(cost + 1, tp, p, GEO_CENTER, lmask);