Optimize Gas Usage across core modules by identifying hotspots and introducing low-risk optimizations.
Direction:
- Profile current implementation for gas-heavy paths and propose targeted refactors (packing, short-circuiting, calldata vs memory).
- Implement optimizations with benchmarks and fallbacks to maintain readability and security.
- Provide a checklist for reviewing gas impact when adding new features.
Acceptance criteria:
- Benchmarks added demonstrating gas before/after for at least three identified hotspots.
- Optimized implementations merged for low-risk changes with tests ensuring identical external behavior.
- A gas-optimization guide/checklist committed to the repo for future contributors.
- CI includes gas regression checks for critical functions.
Optimize Gas Usage across core modules by identifying hotspots and introducing low-risk optimizations.
Direction:
Acceptance criteria: