功能参数如何影响气体成本?

发布于 2025-02-07 18:53:57 字数 188 浏览 1 评论 0原文

假设我有一个函数:

    function doSomething(bytes memory _data){
    ...

}

考虑到函数param _data的大小,气体成本如何增加? 它对_data的大小有限制吗?

Let's suppose I have a function:

    function doSomething(bytes memory _data){
    ...

}

How does the gas cost increase given the size of the function param _data?
Does it has a limit on how big _data can be?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤君无依 2025-02-14 18:53:57

查看此链接 http://www.scs.stanford.edu/ 18AU-CS251/讲座/讲座10.pdf

在斯坦福大学的这次演讲中,它说越多的论点,它消耗的天然气越多。

check out this link http://www.scs.stanford.edu/18au-cs251/lectures/lecture10.pdf

In this lecture by Stanford, it says that the more the arguments, the more gas it consumes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文