通过延迟对象以乐观并行执行增强智能合约编程
Deferred Objects to Enhance Smart Contract Programming with Optimistic Parallel Execution
AI总结:
本文提出 RapidLane,通过延迟冲突计算、乐观预测结果及智能合约新构造,将串行交易工作负载并行化,并在 Block-STM 与 Aptos 上实现最高 12 倍吞吐提升。
摘要:
区块链的主要瓶颈之一是智能合约执行。为了提高吞吐量,现代区块链尝试并行执行交易。然而遗憾的是,常见的区块链用例会在交易之间引入读写冲突,从而迫使交易串行执行。我们提出 RapidLane,这是对并行执行引擎的扩展,使引擎能够捕获交易冲突部分中的计算,并将其执行延迟到稍后时间,有时还会乐观地预测执行结果。该技术与对智能合约语言中新构造的支持相结合,使人们能够将某些串行工作负载转化为可并行化的工作负载。我们将 RapidLane 集成到 Block-STM 中,后者是被多条生产环境中的区块链使用的最先进并行执行引擎,并将其部署在 Aptos 区块链上。我们的评估表明,在常见的争用工作负载上,例如具有单一费用支付者的点对点转账和 NFT 铸造,RapidLane 可产生最高 12 倍的吞吐量提升。
英文摘要:
One of the main bottlenecks of blockchains is smart contract execution. To increase throughput, modern blockchains try to execute transactions in parallel. Unfortunately, however, common blockchain use cases introduce read-write conflicts between transactions, forcing sequentiality. We propose RapidLane, an extension for parallel execution engines that allows the engine to capture computations in conflicting parts of transactions and defer their execution until a later time, sometimes optimistically predicting execution results. This technique, coupled with support for a new construct for smart contract languages, allows one to turn certain sequential workloads into parallelizable ones. We integrated RapidLane into Block-STM, a state-of-the-art parallel execution engine used by several blockchains in production, and deployed it on the Aptos blockchain. Our evaluation shows that on commonly contended workloads, such as peer-to-peer transfers with a single fee payer and NFT minting, RapidLane yields up to $12\times$ more throughput.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。