Invoice Storage Optimization
Example of reducing struct/data size for lower storage cost in blockchain / Stellar projects.
Goal
Demonstrate how to optimize data structures (e.g. using u32 instead of u64 for timestamps) to minimize storage costs.
Techniques Shown
- Using compact types where safe
- Removing redundant fields
- Before vs After size comparison
- Tests to prevent data loss
Built as practice for performance optimization tasks.
Relevant for: Storage cost reduction issues in smart contracts.