FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
358 stars 88 forks source link

Use `DependentCost` for `aloc` opcode #747

Closed xgreenx closed 5 months ago

xgreenx commented 5 months ago

Since we zero bytes during the heap allocation, we need to iterate over n bytes of memory. It may be a lot of work so we need to charge for it properly.

image

Checklist

Before requesting review