Skip to main content

DEMAND_WINDOW_BLOCKS

Constant DEMAND_WINDOW_BLOCKS 

Source
pub const DEMAND_WINDOW_BLOCKS: u64 = 8;
Expand description

Number of blocks per streamed fetch window used by stream_ranges. At the default 1 MiB block size, 8 blocks (8 MiB) matches one coalesced origin GET run (DEFAULT_MAX_COALESCED_GET_BYTES), with buffered(2) giving modest pipeline overlap. This bounds peak in-flight memory per stream to roughly 2 * DEMAND_WINDOW_BLOCKS * block_size, independent of how large the requested range is.