You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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:
cargo test --release)docs/gas-benchmarks.mdwith target and actual valuesget_countandget_betoptimized to use temporary storage where safevec!allocations identified and replaced with streamed iteration where possible