solana_program_runtime::compute_budget

Constant DEFAULT_HEAP_COST

source
pub const DEFAULT_HEAP_COST: u64 = 8;
Expand description

Roughly 0.5us/page, where page is 32K; given roughly 15CU/us, the default heap page cost = 0.5 * 15 ~= 8CU/page