From d0f3acda4ddc17d4160575824edb66fc40b1015d Mon Sep 17 00:00:00 2001 From: David Sehnal <david.sehnal@gmail.com> Date: Mon, 30 Oct 2017 08:57:54 +0100 Subject: [PATCH] sorted array --- src/mol-base/collections/integer/impl/sorted-array.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mol-base/collections/integer/impl/sorted-array.ts b/src/mol-base/collections/integer/impl/sorted-array.ts index 6167a28fb..aeff30732 100644 --- a/src/mol-base/collections/integer/impl/sorted-array.ts +++ b/src/mol-base/collections/integer/impl/sorted-array.ts @@ -258,7 +258,7 @@ const _maxIntRangeRet = { startI: 0, startJ: 0, endI: 0, endJ: 0 }; function getSuitableIntersectionRange(a: Nums, b: Nums) { const la = a.length, lb = b.length; const ratio = la / lb; - if (ratio <= 0.5 || ratio >= 2 || (la >= 128 && lb >= 128)) { + if (la >= 128 || lb >= 128 || ratio <= 0.34 || ratio >= 2.99) { _maxIntRangeRet.startI = findPredecessorIndex(a, start(b)); _maxIntRangeRet.startJ = findPredecessorIndex(b, start(a)); _maxIntRangeRet.endI = findPredecessorIndex(a, end(b)); -- GitLab