coder-rust-performance

<skill_overview> Keep Rust code fast while staying idiomatic

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "coder-rust-performance" with this command: npx skills add ozerohax/assistagents/ozerohax-assistagents-coder-rust-performance

<skill_overview> Keep Rust code fast while staying idiomatic

Optimizing hot loops Reducing allocations Choosing data structures Measuring performance impact

The Rust Book - Performance

</skill_overview> <zero_cost_abstractions>

Use iterators and closures freely; they compile to efficient code Prefer expressive, safe code and measure before micro-optimizing

</zero_cost_abstractions>

Prefer borrowing (&str, &[T]) over allocating (String, Vec) Pre-allocate with Vec::with_capacity when size is known Avoid unnecessary clones; pass references where possible

let mut buf = Vec::with_capacity(1024);

<hot_paths>

Avoid repeated formatting or allocation in tight loops Reuse buffers and temporary values when possible

</hot_paths>

Benchmark with realistic data sizes Compare before and after changes

<anti_patterns> Optimizing before profiling Cloning on each iteration Growing collections without bounds </anti_patterns>

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

coder-csharp-aspnetcore-api

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

coder-csharp-error-handling

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

coder-rust-async-concurrency

No summary provided by upstream source.

Repository SourceNeeds Review