Skip to content

Commit

Permalink
perf: Charge gas before tload search
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Jun 10, 2024
1 parent 275c2dd commit 6a478ab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ tload_found:
// Pre stack: kexit_info, slot
// Post stack: value
global sys_tload:
// stack: kexit_info, slot
%charge_gas_const(@GAS_WARMACCESS)
// stack: kexit_info, slot
SWAP1
// stack: slot, kexit_info
%tload_current
SWAP1

%charge_gas_const(@GAS_WARMACCESS)
// stack: kexit_info, value
EXIT_KERNEL

Expand Down

0 comments on commit 6a478ab

Please sign in to comment.