rust-perf

Profile Rust hot paths and apply zero-copy, SIMD, and memory-layout optimizations.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/anicdh/agstack --skill rust-perf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-perf
Source: https://github.com/anicdh/agstack/tree/main/.claude/skills/rust/rust-perf
Command: npx skills add https://github.com/anicdh/agstack --skill rust-perf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Rust performance optimization to identify and apply improvements in latency-sensitive code, reducing hot-path latency and allocations.

Core Features & Use Cases

  • Profiling hot paths in Rust apps using flamegraphs and perf to locate bottlenecks.
  • Applying zero-copy data handling, SIMD, and cache-aware layouts to boost throughput for orderbook-like workloads and high-frequency components.
  • Guidance on memory management with TTL caches and efficient allocation strategies for long-running bots.

Quick Start

Run a profiling pass on your Rust project to locate hot paths and apply the recommended optimizations.

Frequently Asked Questions about rust-perf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find Rust hot paths causing high latency in my application?

To find Rust hot paths, use profiling tools like flamegraph and perf to locate bottlenecks. Profiling exposes latency-sensitive code so you can apply targeted zero-copy and memory-layout optimizations.

What's the best way to optimize an orderbook processing workload in Rust?

Optimize orderbook processing in Rust by applying zero-copy data handling and cache-aware memory layouts. These techniques boost throughput and reduce latency in high-frequency components.

When do I need SIMD and zero-copy optimizations for Rust bots?

You need SIMD and zero-copy optimizations for Rust bots when handling high-throughput crawling or slippage calculations. These patterns minimize allocations and maximize throughput in latency-sensitive workloads.

Do I need specific crates to improve memory management for long-running Rust bots?

Improving memory management for long-running Rust bots requires crates like moka for TTL caches, crossbeam for concurrency, and bumpalo for efficient allocation strategies to prevent bottlenecks.

How do I validate Rust performance improvements after applying optimizations?

Validate Rust performance improvements by running benchmarking practices before and after applying changes. Comparing benchmarks confirms that zero-copy and SIMD optimizations effectively reduce hot-path latency.