Skip to content

chore(contract): benchmark and optimize storage read/write costs #215

Description

@FaveTeamz

Summary

Measure the instruction count of every public function using the Soroban budget API and identify hot paths that exceed 25 million instructions.

Tasks

  • Add a benches/ directory with a Criterion-style benchmark harness (or use env.budget() assertions)
  • Profile apply_for_issue — suspected 3 storage reads + 2 writes
  • Profile assign_issue — suspected 5 storage reads + 3 writes
  • Consolidate redundant reads by caching in local variables
  • Document instruction budgets in a docs/performance.md file

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programperformancePerformance improvementsmart contractSoroban smart contract

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions