Skip to main content

COMPILE_COST_PER_PAGE

Constant COMPILE_COST_PER_PAGE 

Source
pub const COMPILE_COST_PER_PAGE: u64 = 512;
Expand description

#3 JIT-compile cost per 4 KiB of callee code, charged at the CALL that first materializes a callee Image (O(code), bounded by MAX_CODE_SIZE). Folded into call_frame_cost. Charged in full on every CALL — the compiled image is memoized for work, never for gas — so a re-CALL into a warm Image pays the same and gas stays independent of the node-local compile cache. TODO(gas-calibration): placeholder, subject to change.