pub struct LayoutAdvisor {
pub fat_bytes: usize,
pub large_batch_rows: u64,
}Expand description
Read-only layout advisor: turns the live access counters a component has accumulated into an actionable layout suggestion, without ever repacking.
This is the glass-box half of AGDF that works today (the physical repack is
deferred): a developer can ask “which of my components would benefit from a
different layout, and why?” and get an answer grounded in observed access,
not a guess. The thresholds below encode the engine’s own benchmark findings
(crates/khora-data/examples/layout_bench.rs): the field-SoA/SIMD lever pays
on large, compute-bound batches, and the hot/cold split pays on fat
components — Khora’s lean built-ins want neither. They are deliberately
coarse heuristics and meant to be tuned.
Fields§
§fat_bytes: usizeA component at least this large (bytes) is “fat” → hot/cold split.
large_batch_rows: u64A query touching at least this many rows on average is a “large batch”.
Implementations§
Source§impl LayoutAdvisor
impl LayoutAdvisor
Trait Implementations§
Source§impl Clone for LayoutAdvisor
impl Clone for LayoutAdvisor
Source§fn clone(&self) -> LayoutAdvisor
fn clone(&self) -> LayoutAdvisor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more