Skip to main content

sample_slice_bytes

Function sample_slice_bytes 

Source
fn sample_slice_bytes(fields: &SeriesFields) -> usize
Expand description

The bytes the samples of one series’ fields take as the slices they are.

A dense segment is counted by its rows and a native-histogram field by its index column; a nested segment is left to the chunks it is made of. The walk over segments is the same one raw_chunk_slice_bytes makes for a raw chunk - a field is one or more of them, and both walk them with field_segments - but the yardstick differs on purpose: this figure bills rows and the allocations behind them are counted once by chunk_bytes_beside_samples, while a router bills the buffers a slice keeps alive.