Lazy Loading for Move (AIP-127) is live on Aptos Mainnet 🚀

Think of a DEX aggregator that integrates 10 exchanges. A user swaps through just one of them.

Before AIP-127 (Eager Loading):
The VM charged gas for every module you could reach, even if your transaction only executed one code path.

Now (Lazy Loading):
Modules are loaded and metered on first use, so gas reflects what you actually execute.

What this means:
:white_check_mark: Integrate more protocols without hitting dependency ceilings
:white_check_mark: Users pay less gas in the common case
:white_check_mark: Fewer surprise failures from upgrades you don’t control
:white_check_mark: Faster cold starts (fewer cache misses)

4 Likes