pub fn set_buf_size_scale(scale: f64) -> Result<(), f64>
Expand description

Sets the global scaling factor for buffer size.

The default buffer size will be determined by scale * num_cpus. The method must be called at most once and before calling of any other methods in this crate. Otherwise it returns an error with current value.

Panics

The scale must be positive and finite.