Skip to main content

2 posts tagged with "building-in-public"

View All Tags

From Grid to Quadtree: How We Cut Storage Costs by 97%

· 5 min read

Testnet, March 2026. We measured.

Storage was 94–96% of every transaction's cost. Grid cell dynamic fields consumed 68% of per-parcel insertion cost. As we derived in our Dynamic Fields article, the dominant cost term in the insertion formula is $2.7\text{M} \times K$, where K is the number of grid cells a parcel covers:

$$ \text{Cost} = 1\text{M} + 2.7\text{M} \times K + 3\text{M} + 0.5\text{M} \times m \quad (\text{MIST}) $$

A parcel spanning 36 cells paid 97.2M MIST in cell entries alone. That's 97% of the $2.7\text{M} \times K$ term — the dominant cost component, not 97% of total gas. The other terms (base overhead, geometry storage) were fixed. K was the variable. K scaled with geographic size.

This article is about the five approaches we analyzed to cut K. Four of them failed. The fifth — a hierarchical quadtree with depth-prefixed Morton keys — reduced K from up to 36 to exactly 1. This is the story of how we found it.

Why We Chose Sui: Object Model, Shared Objects, and Sub-Second Finality for a Spatial Protocol

· 6 min read

A spatial cadastre — a protocol where territory claims on a map must never overlap — imposes requirements that most blockchains weren't designed for. It needs atomic read-check-write in a single transaction. It needs concurrent writes to shared state without serialization. It needs sub-second finality for a real-time map. And it needs programmable authorization that works without the owner's signature. We evaluated EVM chains, Solana, and Sui. Here's what we found.