Struct HoldPolicy¶
Defined in File batch_policy.hpp
Struct Documentation¶
-
struct HoldPolicy¶
Lets the batched search hold an amplitude-independent operand outside the loop that slices its consumer: the operand is produced once, whole, at the root scope (in batches of its own if it has to be), and the consumer reads slices of it. Without this an operand that carries a mode its consumer slices is produced inside the consumer’s loop, block by block, cannot persist across evaluations, and is rebuilt on every one.
Public Members
-
bool enabled = false¶
Off (default): the search is exactly what it was.
-
double slow_min_bytes = std::numeric_limits<double>::infinity()¶
A value held outside its consumer’s loop, or scatter-assembled at the root scope, lives in
slowif it is at least this large (bytes), else in memory. Must agree with the size from which the executor keeps a whole root-scope value on disk (eval::DiskSpill::min_bytes).
- MemorySpace slow = {.residency_weight = 0.0}
The space of the large held values. Default: free to hold, free to move.
-
bool enabled = false¶