Skip to content
API REFERENCEUsage guides →

cellpack::opt::Prices ​

struct

Module contract · All interfaces

At a glance ​

pub struct Prices {
    pub request: f64,
    pub byte: f64,
    pub core: f64,
    pub memory: f64,
}

Marginal seconds of a window’s modeled time per unit of each load: the gradient of a smoothed T at the loads it was taken at. Saving loads x is worth prices.value(x) seconds.

Fields and variants ​

request ​

request: f64

Seconds per read request.

byte ​

byte: f64

Seconds per byte read.

core ​

core: f64

Seconds per core-second of worker work.

memory ​

memory: f64

Seconds per byte of cached-row memory traffic.

Member index ​

1 of 1 members

  • valueSeconds saved by removing loads x at these prices, and the cost of adding them.

Methods and associated constants ​

value ​

pub fn value(&self, x: &Loads) -> f64

Seconds saved by removing loads x at these prices, and the cost of adding them.

Implemented traits ​

impl Clone for Prices
impl Debug for Prices
impl Default for Prices
impl PartialEq for Prices

Contract reference ​

See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.

Definition