Back to list
get2knowio

maverick-rust-performance

by get2knowio

Highway to the agent zone!

0🍴 0📅 Jan 25, 2026

SKILL.md


name: maverick-rust-performance description: Rust performance optimization and zero-cost abstractions version: 1.0.0 triggers:

  • clone
  • to_owned
  • Vec::with_capacity
  • String::with_capacity
  • iter()
  • collect()
  • performance
  • optimize
  • allocation

Rust Performance Skill

Avoid Unnecessary Clones

// BAD
fn process(s: String) -> String {
    let s_copy = s.clone();  // Unnecessary!
    s_copy.to_uppercase()
}

// GOOD
fn process(s: String) -> String {
    s.to_uppercase()
}

// OR borrow if you don't need ownership
fn process(s: &str) -> String {
    s.to_uppercase()
}

Preallocate Collections

// BAD - many reallocations
let mut vec = Vec::new();
for i in 0..1000 {
    vec.push(i);
}

// GOOD - single allocation
let vec: Vec<_> = (0..1000).collect();

// OR with_capacity
let mut vec = Vec::with_capacity(1000);

Zero-Cost Abstractions

Iterators are as fast as loops due to inlining and optimization.

Review Severity

  • MAJOR: Unnecessary clones in hot path
  • MINOR: Could preallocate collection
  • SUGGESTION: Could use iterator instead of loop

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon