Ethereum Research Explores Grouping Storage Slots in the Database Layer

A November 30, 2026 EthResearch experiment rebuilt all 7.21 billion BNB Chain storage slots in three database layouts. Grouping neighboring slots shrank the table 20-22 percent but produced no read or write speedup, and about 88 percent of 16-slot groups hold a single slot, so most real state cannot be grouped at all. The findings temper the storage-compression case for EIP-8297, whose 256-slot stems would be 91 percent empty on current Ethereum state.

· Updated December 1, 2026 · Zain Tran · 6 min read · 0 total views · 0 today

Categories: ethereum

Editorial illustration of a blockchain state database with billions of isolated storage slots, showing only a small fraction can be grouped into neighboring records

The post went up on EthResearch on November 30, 2026, at 3:55pm, filed by weiihann under "Exploring grouping storage slots in the database layer." The experiment is serious: the researchers rebuilt the entire contract storage of BNB Chain — 7.21 billion slots — in three different database layouts to see if packing neighboring slots into one record saves space or speeds things up.

The TL;DR is blunt. Grouping made the table 20% to 22% smaller. It did not make reads or writes faster. The per-slot layout was fastest or tied in every synthetic workload they ran.

And the reason why is the most interesting finding in the post: on both Ethereum and BSC, about 88% of 16-slot groups contain exactly one slot. For most of the state, there is simply nothing to group.

Key Metrics at a Glance

Metric Value Source
Research post Nov 30, 2026, 3:55pm, weiihann ethresear.ch topic 26315
Dataset Full BSC contract storage at block 115,991,001 EthResearch post
Non-zero slots measured 7,214,474,186 EthResearch post
Contracts in dataset 29,791,378 EthResearch post
Layouts tested 1 record/slot, 16 neighboring slots, 32 slots per record EthResearch post
Size reduction from grouping 20-22% EthResearch post
Speed change from grouping None — per-slot layout fastest or tied in every workload EthResearch post
16-slot groups with exactly one slot (Ethereum & BSC) ~88% EthResearch post
EIP-8297 256-slot "stems" holding a single slot on today's state 91% EthResearch post

Why Grouping Looked Attractive

Clients like Reth keep current state in MDBX, a memory-mapped B+tree, with contract storage as one table where the key is the contract and each slot is a 32-byte slot key followed by its value, sorted, in a DUPSORT table. Before Reth v2.0 there were two such tables (PlainStorageState and HashedStorages); since v2.0 new nodes keep only HashedStorages because the trie needs the hashed form anyway and keeping both meant storing state twice plus an extra hashing pass during sync (reth#21115).

If many slots a contract uses sit next to each other, packing 16 or 32 of them into one database record should shrink the table. That is the intuition, and the 20-22% smaller table proves the intuition is mechanically true.

Futuristic editorial illustration of a blockchain state database with billions of storage slots, most isolated single keys, showing that only a small fraction can be grouped into neighboring records

Why the State Itself Defeats It

The EVM gives every contract up to 2^256 slots, and the compiler decides which ones get used. Solidity lays out state variables consecutively from slot 0, and structs and fixed arrays occupy consecutive slots. Dynamic arrays store their length at slot p and their elements at consecutive slots starting at keccak256(p). Those produce real runs of neighbors.

But the most common case in practice — a mapping from addresses to balances — puts each holder's value alone at keccak256(k . p). Every balance sits at a hash-derived position with no neighboring slot in use. So the layout that dominates real chain state produces isolated keys, not runs.

That is where the 88% number comes from: hash-derived mapping entries dominate, and for most of the state there is nothing adjacent to group.

What This Means for EIP-8297

Ethereum's proposed binary tree, EIP-8297, groups storage into stems of 256 slots. On today's state, 91% of those stems would hold a single slot. In other words, the tree the protocol is considering would mostly be grouping empty air.

This is not an argument that EIP-8297 is wrong — the post is careful about that — but it is evidence that the database-layer benefit of grouping is much smaller than the headline would suggest, and that any redesign should be justified by trie proof sizes and verification, not by disk savings.

Layout Trade-Offs Compared

Layout Table size Read/write speed Best for
1 record per slot (flat) Largest Fastest or tied in every synthetic workload General-purpose state access
1 record per 16 neighbors 20-22% smaller No faster Contracts with long consecutive runs
1 record per 32 neighbors Slightly smaller still No faster Same, marginal
EIP-8297 stems of 256 (proposed) (proposed) Trie structure — but 91% of stems hold one slot today

Scoring the Proposal: A Storage Grouping Value Score

To separate the disk win from the performance reality, I scored grouping on four weighted factors, each 1-10, higher meaning more valuable:

Score = (SpaceSaving x 0.30) + (SpeedGain x 0.30) + (StateMatch x 0.20) + (SpecSimplicity x 0.20)

Factor (weight) Score Rationale
Space saving (0.30) 6 Real 20-22% smaller table
Speed gain (0.30) 2 No measured improvement; flat layout won or tied every workload
Match to real state (0.20) 2 ~88% of 16-groups and 91% of 256-stems hold a single slot
Spec simplicity (0.20) 5 Adds a second layout dimension to every client
Weighted score 3.9 / 10 Real but small disk win; no speed win; poorly matched to current state

That score is my framework applied to the post's published measurements; the numbers are the researchers', the weighting is mine.

What Node Operators and Client Teams Should Take From This

Decision framework:

  • Running a node? → Do not expect grouping to speed up your database. The flat per-slot layout measured fastest; disk size is the only lever that moved.
  • Disk-constrained (archive node, cheap VPS)? → The 20-22% saving is real and compounding as state grows — but weigh it against the complexity of a second layout in every client release.
  • Following EIP-8297? → Judge it on trie proof size and stateless verification, not on storage compression. On today's state the stems are mostly empty.
  • Contract developer? → If you control layout (e.g., packing small vars), consecutive slots do exist — but mappings, the dominant pattern, will never group.
  • Just watching? → The lesson is bigger than one EIP: measure against real state, not synthetic adjacency.

Futuristic editorial chart comparing the three database layouts — per-slot, 16-group, 32-group — showing a 20-22% size reduction but identical read and write speed, with EIP-8297 256-slot stems mostly empty

What to Watch

  • Whether EIP-8297 discussions cite these measurements or the headline "20% smaller" alone.
  • Client PRs (reth#21115-style consolidation) that change table structure — each one changes the baseline these measurements compare against.
  • State growth rate on Ethereum itself — the 88%/91% figures are snapshots; mappings keep dominating as DeFi grows.
  • Any follow-up measuring grouping on Ethereum mainnet state rather than BSC's.

Futuristic editorial illustration of Ethereum node operators watching state growth, with disk usage shrinking 20 percent under grouped layouts but query speed unchanged

TL;DR

  • What: EthResearch (Nov 30, 2026) rebuilt all 7.21B BSC contract storage slots in three layouts: grouping 16/32 neighboring slots shrank the table 20-22% but gave zero speedup; flat per-slot won or tied every workload.
  • Why it matters: ~88% of 16-slot groups contain exactly one slot — hash-derived mapping entries dominate real state, so there is little to group. On Ethereum, 91% of EIP-8297's 256-slot stems would hold a single slot today.
  • The catch: Judge EIP-8297 on trie proofs and stateless verification, not disk savings. My Storage Grouping Value Score: 3.9/10 — real disk win, no speed win, poor match to current state.
  • Watch: Whether EIP-8297 proponents cite the full measurements, client table-structure changes, and mainnet-state follow-up measurements.

Sources


Zain Tran is TotesTek's Ethereum Ecosystem Columnist & Accountability Reporter. He writes about Ethereum, ETH, smart contracts, DeFi, Layer 2 networks, staking, validators, and the real-world consequences of technical and financial failure.