Skip to main content

mapped_workspace_bytes

Function mapped_workspace_bytes 

Source
fn mapped_workspace_bytes(series: &Series) -> Result<usize>
Expand description

An upper bound of what a kernel that maps each dense segment of series into a new array of its length allocates: float math over a series of floats, and arithmetic against a constant, which also rebuilds a histogram field sample by sample.

A mapped segment holds its values behind the header of the allocation they share, rounded up to Arrow’s 64-byte alignment. A histogram row is not one f64: the kernel copies the whole payload, buckets included, so the largest row in the field is the one to charge.