From 39f460e0b061be7a210a5cf784e1701b4475a1a1 Mon Sep 17 00:00:00 2001 From: "Brennan Wilkes (Text Groove)" Date: Thu, 22 Jan 2026 13:27:54 -0800 Subject: [PATCH] feat: More expensive link search --- viz/app/linker_page.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/viz/app/linker_page.js b/viz/app/linker_page.js index 2e2aa95..800d67e 100644 --- a/viz/app/linker_page.js +++ b/viz/app/linker_page.js @@ -290,12 +290,12 @@ function computeInitialPairsFast(allAgg, mappedSkus, limitPairs, isIgnoredPairFn const itemsShuf = items.slice(); shuffleInPlace(itemsShuf, rnd); - const WORK_CAP = 2500; + const WORK_CAP = 5000; const work = itemsShuf.length > WORK_CAP ? itemsShuf.slice(0, WORK_CAP) : itemsShuf; const seeds = topSuggestions(work, Math.min(400, work.length), "", mappedSkus); - const TOKEN_BUCKET_CAP = 250; + const TOKEN_BUCKET_CAP = 500; const tokMap = new Map(); const itemTokens = new Map(); const itemNormName = new Map(); @@ -314,8 +314,8 @@ function computeInitialPairsFast(allAgg, mappedSkus, limitPairs, isIgnoredPairFn } const bestByPair = new Map(); - const MAX_CAND_TOTAL = 150; - const MAX_FINE = 6; + const MAX_CAND_TOTAL = 250; + const MAX_FINE = 10; for (const a of seeds) { const aSku = String(a.sku || "");