You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tvm-spec says both SENDMSG and SENDRAWMSG consume 526 gas units
Proof:
Seitaro Higuchi wrote
RU
вообще, мб надо sendmsg переделать: мы вытаскивали все параметры комиссий в слайсы и контекст как раз чтобы не надо было вскрывать ячейки которые на самом деле и так вскрыты в процессе исполнения: https://docs.ton.org/v3/documentation/tvm/changelog/tvm-upgrade-2024-04#c7
получается что sendmsg неоправданно дорог
некритично конечно, но все же
ENG:
In general, maybe sendmsg should be redesigned: we pulled all commission parameters into slides and context just to avoid opening cells that are actually opened during execution: https://docs.ton.org/v3/documentation/tvm/changelog/tvm-upgrade-2024-04#c7
It turns out that sendmsg is unreasonably expensive.
not critical, of course, but still
When using SENDMSG message is opened and the bits/refs are counted. So if I understand it correctly gas(SENDMSG) ≈ gas(SENDRAWMSG) + gas(CDATASIZE(msg))
(This needs to be tested, though)
The text was updated successfully, but these errors were encountered:
tvm-spec says both SENDMSG and SENDRAWMSG consume 526 gas units
Proof:
RU
ENG:
When using SENDMSG message is opened and the bits/refs are counted. So if I understand it correctly
gas(SENDMSG) ≈ gas(SENDRAWMSG) + gas(CDATASIZE(msg))
(This needs to be tested, though)
The text was updated successfully, but these errors were encountered: