Skip to main content

auto_memory_budget

Function auto_memory_budget 

Source
fn auto_memory_budget() -> usize
Expand description

Pick a thumbnail-cache RAM budget from MemTotal in /proc/meminfo, clamped to [AUTO_MIN_BYTES, AUTO_MAX_BYTES]. Falls back to the floor if the file can’t be read.