tigrbl_rs_kernel 0.4.1

Rust kernel compiler, packed plan model, and optimizer passes for Tigrbl.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub struct PackedPlan {
    pub segments: usize,
    pub hot_paths: usize,
    pub fused_steps: usize,
    pub routes: usize,
}

impl PackedPlan {
    pub fn from_binding_count(binding_count: usize) -> Self {
        Self {
            segments: binding_count,
            hot_paths: binding_count.min(1),
            fused_steps: binding_count,
            routes: binding_count,
        }
    }
}