EIP-8057은 블록 간 시간적 지역성에 기반한 가스 할인을 도입하여, 최근 블록에서 이미 접근된 상태에 대해 재접근 시 저렴한 가스 비용을 제공하는 코어 Draft 제안입니다.
Temporal Locality Concept
In computer systems, temporal locality refers to the principle that recently accessed data is likely to be accessed again soon. EIP-8057 applies this concept to Ethereum's gas pricing, proposing that state accessed in recent blocks be eligible for gas discounts upon re-access. This aligns gas costs with actual cache behavior in Ethereum clients.
Proposed Discount Mechanism
The proposal introduces an inter-block access list that tracks which storage slots and accounts were accessed in the last N blocks. Accessing a slot that appears on this list would incur a reduced gas cost compared to a cold access. The discount magnitude and the lookback window are parameters to be determined through research.
Performance Motivation
Modern Ethereum clients cache recently accessed state in memory, making re-access much faster than loading from disk. The current gas model does not distinguish between warm (cached) and cold (disk) accesses across block boundaries. EIP-8057 aims to fix this by extending the warm/cold access concept beyond a single block.
Interaction with EIP-2929
EIP-2929 introduced intra-block warm/cold access gas differentiation, which EIP-8057 extends to inter-block scenarios. The two proposals are complementary and together would create a more complete picture of access costs. Careful analysis is needed to ensure the discount does not create new attack vectors like artificially inflating the inter-block access list.