Skip to content

Title: perf(contracts): optimize contract gas usage and establish benchmarks` #23

Description

@Divineifed1

Description:
Soroban transaction fees are paid in XLM (stroops). Each contract function must be profiled for instruction count and ledger entry usage to keep user costs predictable and low.

Acceptance criteria:

  • Benchmark script measures CPU and memory for each public function (cargo test --release)
  • Results stored in docs/gas-benchmarks.md with target and actual values
  • get_count and get_bet optimized to use temporary storage where safe
  • Excessive vec! allocations identified and replaced with streamed iteration where possible
  • CI fails if any function exceeds defined gas budget (configurable threshold)

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions