AVERAGE_BINARY_LENGTH

Constant AVERAGE_BINARY_LENGTH 

Source
const AVERAGE_BINARY_LENGTH: usize = 128;
Expand description

A byte size value representing the number of bytes to allocate per binary in GenericBinaryBuilder

To create a GenericBinaryBuilder using .with_capacity we are required to provide: \

  • item_capacity - the row count \
  • data_capacity - total binary byte count \

We will use the AVERAGE_BINARY_LENGTH * row_count for data_capacity. \

These capacities are preallocation hints used to improve performance, but consequences of passing a hint too large or too small should be negligible.