Expand description
Tuning module — resolution of SourceTuning from YAML + adaptive helpers.
Split into three concerns:
- [
profile] — config types, three baked-in profiles,SourceTuning,ResourceSummary. The bulk of the module’s surface lives here. - [
memory] — pure schema-based memory estimation (estimate_row_bytes, [compute_batch_size_from_memory]). - [
adaptive] — live-feedback batch sizing (next_adaptive_batch_size+ theADAPTIVE_*constants).
All public symbols are re-exported at the module root so existing
crate::tuning::SourceTuning / crate::tuning::estimate_row_bytes paths
keep working.
Structs§
Enums§
- Batch
Memory Policy - Action taken when a single Arrow batch exceeds
max_batch_memory_mb. - Tuning
Profile
Constants§
- ADAPTIVE_
SAMPLE_ INTERVAL - Number of batches between adaptive pressure samples.
Functions§
- estimate_
row_ bytes - Estimate average row size in bytes from an Arrow schema.
- merge_
tuning_ config - Layer
exporton top ofsource: each field uses export when set, otherwise source.Noneonly when both inputs areNone. - next_
adaptive_ batch_ size - Decide the next adaptive fetch size from current pressure state.