MCPcopy Create free account
hub / github.com/WebReflection/hypersimple / findK

Function findK

index.js:409–419  ·  view source on GitHub ↗
(ktr, length, j)

Source from the content-addressed store, hash-verified

407 };
408
409 var findK = function findK(ktr, length, j) {
410 var lo = 1;
411 var hi = length;
412
413 while (lo < hi) {
414 var mid = (lo + hi) / 2 >>> 0;
415 if (j < ktr[mid]) hi = mid;else lo = mid + 1;
416 }
417
418 return lo;
419 };
420
421 var smartDiff = function smartDiff(get, parentNode, futureNodes, futureStart, futureEnd, futureChanges, currentNodes, currentStart, currentEnd, currentChanges, currentLength, compare, before) {
422 applyDiff(OND(futureNodes, futureStart, futureChanges, currentNodes, currentStart, currentChanges, compare) || HS(futureNodes, futureStart, futureEnd, futureChanges, currentNodes, currentStart, currentEnd, currentChanges), get, parentNode, futureNodes, futureStart, currentNodes, currentStart, currentLength, before);

Callers 1

HSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected