Update syscall base costs

This commit is contained in:
Dmitri Makarov
2022-01-26 18:26:53 -08:00
committed by Dmitri Makarov
parent 74498650bc
commit 4d891043d1
4 changed files with 108 additions and 54 deletions

View File

@ -60,6 +60,8 @@ pub struct ComputeBudget {
/// Number of compute units per additional 32k heap above the default (~.5
/// us per 32k at 15 units/us rounded up)
pub heap_cost: u64,
/// Memory operation syscall base cost
pub mem_op_base_cost: u64,
}
impl Default for ComputeBudget {
@ -88,6 +90,7 @@ impl ComputeBudget {
syscall_base_cost: 100,
heap_size: None,
heap_cost: 8,
mem_op_base_cost: 10,
}
}