1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Optimize store_slice function to reduce gas consumption

This commit is contained in:
Your Name 2024-10-21 16:41:32 +08:00
parent 921aa29eb5
commit 3158025a9a

View file

@ -439,7 +439,7 @@ builder store_ref(builder b, cell c) asm(c b) "STREF";
;;; Stores `slice` [s] into `builder` [b]
builder store_slice(builder b, slice s) asm "STSLICER";
builder store_slice(builder b, slice s) asm(s b) "STSLICE";
;;; Stores (serializes) an integer [x] in the range `0..2^120 1` into `builder` [b].
;;; The serialization of [x] consists of a 4-bit unsigned big-endian integer `l`,