colstore.calibrate¶
- colstore.calibrate(*, persist=True, verbose=False, rounds=10)[source]¶
Measure and select a near-optimal gather thread cap for this machine.
Sweeps a range of thread counts on a synthetic scatter – every candidate timed once per round, interleaved, with the median over
roundsrounds as the statistic (see_CALIB_ROUNDS) – picks the smallest count within_KNEE_TOLERANCEof the best throughput, applies it viacolstore.config.set_gather_thread_cap(), and (by default) caches it. A half-vs-half pick disagreement emits a stability warning.Requires the compiled C++ extension; raises
RuntimeErrorif it is unavailable. Returns the chosen cap.