Login
Sign Up
Discover
Following
News
Stocks
Notification
Profile
Bookmarks
Chats
History
Creator Center
Copy Trading
Live
Settings
Post
Post
看盘搭子阿豪
--
读取一批数据的数量,一定要先把它们全部收进新数组吗?Agave Draft
#16823
给了一个小例子:旧路径为了调用一次 len,把打包后的 ancient storage 迭代器收集成 Vec;方案利用已有 packed_contents 的等长关系取数量,让原迭代器继续惰性处理。这个改动关注一次性中间集合,并没有声称改变账户存储语义或删除历史数据。看
$SOL
客户端内存优化时,可以先区分必要结果和临时容器;省掉一次收集,也需要确认长度对应关系成立。
SOL
-0.48%
5
Join global crypto users on Binance Square
⚡️ Get latest and useful information about crypto.
💬 Trusted by the world’s largest crypto exchange.
👍 Discover real insights from verified creators.
Email / Phone number
Sign up to earn rewards
Login
Sitemap
Cookie Preferences
Platform T&Cs