Home / News

Ecosystems20/11 17:27 UTC+7

Solana’s Next Upgrade Could Break Existing Apps As Developers Face New Warning

Source: Bitcoinist — Read the original ↗

RelatedSOL $73.53 +3.1%prices as of last site update (CoinGecko)

Summary

Anza announced on Nov. 19 that Solana mainnet feature activations are resuming after the Breakpoint conference, days after Solana officially exited beta. It warned that an upcoming change called account data direct mapping could disrupt programs relying on certain memory-access behaviors. Today the runtime copies account data into a program's virtual machine before execution and back afterward, with extra copies during cross-program invocations, up to four copy operations for some instructions. Direct mapping aims to cut that to zero by letting programs access account data directly, but it requires stricter memory-access rules, so programs using unsupported shortcuts may hit errors.

Key points

  • Feature activations resume after Breakpoint; Solana recently exited beta
  • Direct mapping removes account data copying, from up to four copies to zero
  • Stricter memory rules may break programs using unsupported shortcuts
  • Developers should review contracts before activation

Why it matters: A performance gain for Solana that could force app teams to audit their programs.

Tóm tắt

Anza thông báo ngày 19/11 rằng việc kích hoạt tính năng trên mainnet Solana sẽ tiếp tục sau hội nghị Breakpoint, chỉ vài ngày sau khi Solana chính thức rời giai đoạn beta. Anza cảnh báo thay đổi sắp tới mang tên account data direct mapping có thể làm gián đoạn các chương trình dựa vào một số cách truy cập bộ nhớ. Hiện runtime sao chép dữ liệu tài khoản vào máy ảo của chương trình trước khi thực thi và sao chép lại sau đó, cộng thêm các lần sao chép khi gọi chéo chương trình (CPI), có lệnh lên tới bốn lần sao chép. Direct mapping nhằm giảm xuống 0 bằng cách cho chương trình truy cập dữ liệu trực tiếp, nhưng đòi hỏi quy tắc bộ nhớ chặt hơn, nên chương trình dùng lối tắt không được hỗ trợ có thể gặp lỗi.

Điểm chính

  • Kích hoạt tính năng tiếp tục sau Breakpoint; Solana vừa rời beta
  • Direct mapping bỏ sao chép dữ liệu tài khoản, từ tối đa 4 lần xuống 0
  • Quy tắc bộ nhớ chặt hơn có thể làm hỏng chương trình dùng lối tắt
  • Lập trình viên nên rà soát hợp đồng trước khi kích hoạt

Vì sao quan trọng: Cải thiện hiệu năng cho Solana nhưng có thể buộc các nhóm ứng dụng kiểm tra lại chương trình.

摘要

Anza于11月19日宣布,Solana主网功能激活将在Breakpoint大会后恢复,而就在几天前Solana正式退出测试版。它警告称,即将推出的“账户数据直接映射”可能会干扰依赖某些内存访问行为的程序。目前运行时会在执行前将账户数据复制到程序虚拟机中、执行后再复制回去,跨程序调用(CPI)时还有额外复制,某些指令最多涉及四次复制。直接映射旨在让程序直接访问账户数据,将复制次数降为零,但需要更严格的内存访问规则,依赖不受支持捷径的程序可能会报错。

要点

  • Breakpoint后恢复功能激活,Solana刚退出测试版
  • 直接映射将账户数据复制从最多四次降为零
  • 更严格的内存规则可能破坏使用捷径的程序
  • 开发者应在激活前审查合约

为何重要: 这项性能提升可能迫使应用团队审计其程序。

Original summary written by VolumeVein from the publisher’s article; no full text is republished. Facts belong to the original report — read it for full context. Not financial advice.

Read the full article on Bitcoinist ↗