<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>代码执行效率 on 办公AI智能小助手</title>
    <link>https://blog.qife122.com/tags/%E4%BB%A3%E7%A0%81%E6%89%A7%E8%A1%8C%E6%95%88%E7%8E%87/</link>
    <description>Recent content in 代码执行效率 on 办公AI智能小助手</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <copyright>qife</copyright>
    <lastBuildDate>Wed, 17 Sep 2025 15:38:51 +0800</lastBuildDate>
    <atom:link href="https://blog.qife122.com/tags/%E4%BB%A3%E7%A0%81%E6%89%A7%E8%A1%8C%E6%95%88%E7%8E%87/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Rootstock智能合约执行效率漏洞：CODESIZE实现低效导致1.5分钟延迟</title>
      <link>https://blog.qife122.com/p/rootstock%E6%99%BA%E8%83%BD%E5%90%88%E7%BA%A6%E6%89%A7%E8%A1%8C%E6%95%88%E7%8E%87%E6%BC%8F%E6%B4%9Ecodesize%E5%AE%9E%E7%8E%B0%E4%BD%8E%E6%95%88%E5%AF%BC%E8%87%B41.5%E5%88%86%E9%92%9F%E5%BB%B6%E8%BF%9F/</link>
      <pubDate>Wed, 17 Sep 2025 15:38:51 +0800</pubDate>
      <guid>https://blog.qife122.com/p/rootstock%E6%99%BA%E8%83%BD%E5%90%88%E7%BA%A6%E6%89%A7%E8%A1%8C%E6%95%88%E7%8E%87%E6%BC%8F%E6%B4%9Ecodesize%E5%AE%9E%E7%8E%B0%E4%BD%8E%E6%95%88%E5%AF%BC%E8%87%B41.5%E5%88%86%E9%92%9F%E5%BB%B6%E8%BF%9F/</guid>
      <description>&lt;h1 id=&#34;crafted智能合约因低效codesize实现导致执行时间达15分钟&#34;&gt;crafted智能合约因低效CODESIZE实现导致执行时间达1.5分钟&lt;/h1&gt;&#xA;&lt;h2 id=&#34;摘要&#34;&gt;摘要&lt;/h2&gt;&#xA;&lt;p&gt;TLDR: VM.doCODESIZE()效率低下可能导致执行缓慢。&lt;/p&gt;&#xA;&lt;p&gt;VM.doCODESIZE()通过调用Program.getCode()获取代码大小，然后对返回值调用length属性：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
