@danielsimonjr/mathts-parallel
v0.8.1
Published
WebWorker parallelization for MathTS computations
Maintainers
Readme
@danielsimonjr/mathts-parallel
Parallel compute for MathTS.
WebWorker / worker-thread parallelization for MathTS, built on @danielsimonjr/mathts-workerpool.
Install
npm install @danielsimonjr/mathts-parallelWhat it provides
ComputePoolfor chunked work overFloat64Arraydata (parallel only when an op's threshold is met — most element-wise defaults are'never'/ sequential).DEFAULT_THRESHOLD_BY_OP,resolveOpThreshold, standaloneparallel*helpers, and bitwise ops.WorkerPool, the low-level pool thatexecute(data, transferables?, timeoutMs?)runs on: opt-in per-task timeouts with hung-worker replacement. A call that waits in the queue is covered by its timeout too, andterminate()cancels the timers and stops a worker that was still starting.@danielsimonjr/mathts-functionsuses it forsearchScalars(paralleloption).
License
MIT (c) Daniel Simon Jr.
