
M10 Performance
Rust performance guidance that stresses profiling first, then maps bottlenecks to allocation, cache, parallelism, and algorithm fixes.
- skills.sh installs
- 4K
- GitHub stars
- 1.6K
- last updated
- Aug 21, 2026
What it does
- Covers the optimization workflow from profiling and benchmarking through choosing algorithm, data structure, allocation, cache, and parallelism changes
- Includes a priority ladder ranking algorithm choice above data structures, allocation reduction, cache layout, and SIMD or parallelism
- Provides tools and techniques for measuring hotspots, including
cargo bench,criterion,perf,flamegraph,heaptrack, andcachegrind - Designed for Rust work where a performance target or latency requirement must be met before changes are justified
Install
$ npx -y skills add actionbook/rust-skills --skill m10-performance -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Performance Optimization
Layer 2: Design Choices
Core Question
What's the bottleneck, and is optimization worth it?
Before optimizing:
- Have you measured? (Don't guess)
- What's the acceptable performance?
- Will optimization add complexity?
Performance Decision → Implementation
| Goal | Design Choice | Implementation |
|---|---|---|
| Reduce allocations | Pre-allocate, reuse | with_capacity, object pools |
| Improve cache | Contiguous data | Vec, SmallVec |
| Parallelize | Data parallelism | rayon, threads |
| Avoid copies | Zero-copy | References, Cow<T> |
| Reduce indirection | Inline data | smallvec, arrays |
Thinking Prompt
Before optimizing:
-
Have you measured?
- Profile first → flamegraph, perf
- Benchmark → criterion, cargo bench
- Identify actual hotspots
-
What's the priority?
- Algorithm (10x-1000x improvement)
- Data structure (2x-10x)
- Allocation (2x-5x)
- Cache (1.5x-3x)
-
What's the trade-off?
- Complexity vs speed
- Memory vs CPU
- Latency vs throughput
Trace Up ↑
To domain constraints (Layer 3):
Details
- Repository
- github.com/actionbook/rust-skills
- Categories
- Rust, Debugging
- First seen
- May 16, 2026
More from actionbook/rust-skills
All 38- M07 Concurrency3.8K
- M06 Error Handling3.8K
- M01 Ownership3.7K
- M05 Type Driven3.7K
- M04 Zero Cost3.7K
- M02 Resource3.7K
- Rust Refactor Helper3.7K
- M03 Mutability3.7K
- M12 Lifecycle3.6K
- M09 Domain3.6K
- M14 Mental Model3.6K
- M13 Domain Error3.6K
- M11 Ecosystem3.6K
- Unsafe Checker3.6K
- Rust Code Navigator3.6K
- Rust Trait Explorer3.5K
- Rust Call Graph3.5K
- Rust Symbol Analyzer3.5K
- Domain Web3.5K
- Domain Cli3.5K
- Rust Learner3.4K
- Rust Skill Creator3.4K
- Rust Deps Visualizer3.3K
- Meta Cognition Parallel3.3K
Similar to M10 Performance
More Rust
golang-performancesamber/cc-skills-golang44.1K installsGo performance patterns for allocation reduction, CPU efficiency, GC tuning, pooling, and caching, applied per bottleneck.
rust-profilingmohitmishra786/low-level-dev-skills725 installsRust profiling workflow covering flamegraphs, binary size, monomorphization bloat, and Criterion microbenchmarks.
profiling-optimizationaj-geddes/useful-ai-prompts457 installsStructured profiling workflow covering CPU profiling, flame graphs, and benchmarking for performance bottlenecks.
python-performance-optimizationwshobson/agents38K installsGuide to profiling and optimizing Python code with cProfile, memory profilers, and performance best practices.
rustpproenca/dot-skills124 installsRust performance guidelines for writing, reviewing, and refactoring code toward optimal patterns.
cpu-profilingaj-geddes/useful-ai-prompts456 installsProfile CPU usage to find hot spots and bottlenecks, then guide targeted optimization of expensive code paths.