Skip to main content

vector_workspace_bytes

Function vector_workspace_bytes 

Source
fn vector_workspace_bytes(
    op: &BoundVectorOp,
    schema: &SeriesSchema,
    series: &[Series],
) -> usize
Expand description

A rough estimate of what the vector operation op allocates over series, beside the input it reads.

  • a ranking: per row the recorded (point, row) and its candidate, per series its place in the label order, its group and result descriptors, and the histograms limitk and limit_ratio copy into their results;
  • a sort: the value each series is keyed by, and the floats sort and sort_desc rebuild a series into when it holds histograms;
  • absent: a presence flag and a result value per grid point and field;
  • count_values: per field sample, the group’s label set with the value written into it, its count per field and the result series it becomes;
  • histogram_quantile and histogram_fraction: the merge of label-set pieces, per series its group entry and a cursor per field, and per row the bucket it contributes.