tesser.simple
Drop-in replacement for reducers/fold
and core/reduce
, where order doesn’t matter.
fold
(fold reducef coll)
(fold combinef reducef coll)
(fold n combinef reducef coll)
Folds over a collection using a parallel reduce-combine strategy. Collection is partitioned into chunks of approximately n
(default 512), and folded over with t/tesser
. Unlike reducers fold
, this function does not preserve order.
reduce
(reduce f init coll)
Like clojure.core/reduce, but parallel, using
t/tesserover 512-element
chunks. Unlike
core/reduce`, does not preserve order, init must be an identity element, f must be associative, etc.