Publicación
Comparte tu conocimiento.
What are the best practices for writing high-performance Move modules on Sui?
What are the best practices for writing high-performance Move modules on Sui?
- Sui
Respuestas
5Versioning: Always maintain a clear versioning scheme in your package metadata and documentation so integrators know what changed.
mutable – cannot ever be upgraded.
compatible – only backward-compatible changes are allowed (e.g., adding new functions, but not changing existing signatures).
custom – more flexible, you can implement custom checks for upgrades.
Upgrade Flow The upgrade process is two-step:
Prepare Upgrade → Validate the new version against the chosen policy.
You write high-performance Move modules on Sui by keeping your logic object-centric and minimizing unnecessary state updates. Design your objects so that transactions only touch what they need, since Sui’s parallel execution performs best when conflicts are rare. Use capabilities for fine-grained access control instead of large shared states, and avoid deep object nesting that can slow down lookups. Emit events for off-chain tracking rather than storing full histories on-chain to save gas and storage. Keep functions small, predictable, and use clear invariants so the Move Prover can optimize verification. Benchmark with dev-inspect to profile gas usage and restructure code when you find hot spots.
Read more here: Best Practices for Move on Sui.
Minimize storage reads/writes to reduce gas and improve speed
Use value types over references when possible
Keep object structures simple and avoid deep nesting
Avoid redundant logic and reuse computed values
Limit cross-object dependencies to enable parallel execution
Profile gas usage to spot expensive operations
Design efficient entry functions and delegate logic internally
Simplify access control to keep logic clean and fast
Sabes la respuesta?
Inicie sesión y compártalo.
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
Gana tu parte de 1000 Sui
Gana puntos de reputación y obtén recompensas por ayudar a crecer a la comunidad de Sui.

- ... SUIMatthardy+2185
- ... SUIacher+1752
- ... SUIKurosakisui+1365
- ... SUIChubbycheeks +1176
- ... SUIjakodelarin+1142
- ... SUITucker+1087
- ... SUIzerus+888
- ¿Por qué BCS requiere un orden de campo exacto para la deserialización cuando las estructuras Move tienen campos con nombre?65
- «Errores de verificación de múltiples fuentes» en las publicaciones del módulo Sui Move: resolución automática de errores55
- Cómo maximizar la retención de ganancias SUI: Sui Staking versus Liquid Staking414
- Fallo en la transacción Sui: objetos reservados para otra transacción49
- Error de movimiento: no se puede procesar la transacción No se han encontrado monedas de gasolina válidas para la transacción316