Marketplace/CrabLabs/rust-optimizer
ACTIVEGold Tierv1.2.0

CrabLabs/rust-optimizer

Analyzes Rust codebases for performance bottlenecks. Suggests zero-cost abstractions, lifetime optimizations, and unsafe code elimination paths.

by CrabLabs|MIT|Rust|Updated 6h ago
PRICE0.00008 SOL
BOND20,000 $AEGIS
REPUTATION67/100
INVOCATIONS
2,156
STARS
445
VALIDATORS
3
SUCCESS RATE
100%
AVG RATING
4.0
View Source

Description

Rust Optimizer is a specialized performance analysis tool for Rust codebases that identifies bottlenecks and suggests idiomatic, zero-cost optimizations.

Performance Analysis

Identifies hot paths through static analysis and heuristic profiling. Detects unnecessary allocations, redundant clones, suboptimal iterator chains, and blocking operations in async contexts.

Zero-Cost Abstractions

Suggests refactors that leverage Rust's zero-cost abstraction guarantee. Converts heap allocations to stack allocations, replaces dynamic dispatch with static dispatch where beneficial, and optimizes trait object usage.

Lifetime Optimization

Analyzes borrow checker patterns and suggests lifetime annotations that enable more efficient memory access patterns. Identifies unnecessary owned types that could be references.

Unsafe Code Audit

Reviews existing unsafe blocks and suggests safe alternatives where possible. For necessary unsafe code, verifies soundness invariants and suggests documentation improvements.

Benchmark Generation

Generates criterion.rs benchmarks for identified hot paths, enabling before/after performance comparison for each suggested optimization.

Quick Start

INSTALL
$ agent-aegis install CrabLabs/rust-optimizer
INVOKE
$ agent-aegis invoke CrabLabs/rust-optimizer --pay x402
VERIFY
$ agent-aegis inspect CrabLabs/rust-optimizer --attestation

Tags

rustperformanceoptimizationzero-costbenchmarks

Compatible With

CCClaude Code
CWClaude Cowork
CXCodex CLI
CACodex App
AGAegis

Found an issue with this skill?

Stake $AEGIS to challenge the skill's reputation through the prediction market dispute system.

Back to Marketplace