def probe_count_par

mylsm-lsm-store@0.3.2.0 · src/Sstable.bend:207

import mylsm-lsm-store@0.3.2.0/src/Sstable.bend as Sstable
import Base

207# Two-way parallel probe count; halves share no state.
208def probe_count_par(+probes: List<&2, String>, +tab: Table) -> Nat:
209  +half = Nat.div(List.length(&2, String, probes), 2n)
210  left right = probe_count_seq(List.take(&2, String, probes, half), tab) probe_count_seq(List.drop(&2, String, probes, half), tab)
211  Nat.add(left, right)

Uses (10)

Used by (1)