Skip to content
Development
Skill

/performance

Performance optimization guidelines for Splitrail. Use when optimizing parsing, reducing memory usage, or improving throughput.

From plugin
splitrail
2166 skills
Install
$ npx -y skills add Piebald-AI/splitrail --skill performance --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/performance

Context preview

The summary Claude sees to decide when to auto-load this skill.

Performance optimization guidelines for Splitrail. Use when optimizing parsing, reducing memory usage, or improving throughput.

SKILL.md

performance.SKILL.md
name: performance
description: Performance optimization guidelines for Splitrail. Use when optimizing parsing, reducing memory usage, or improving throughput.

Performance Considerations

Techniques Used

  • **Parallel analyzer loading** - `futures::join_all()` for concurrent stats loading
  • **Parallel file parsing** - `rayon` for parallel iteration over files
  • **Fast JSON parsing** - `simd_json` exclusively for all JSON operations (note: `rmcp` crate re-exports `serde_json` for MCP server types)
  • **Fast directory walking** - `jwalk` for parallel directory traversal
  • **Lazy message loading** - TUI loads messages on-demand for session view

See existing analyzers in `src/analyzers/` for usage patterns.

Guidelines

1. Prefer parallel processing for I/O-bound operations 2. Use `parking_lot` locks over `std::sync` for better performance 3. Avoid loading all messages into memory when not needed 4. Use `BTreeMap` for date-ordered data (sorted iteration)

Ships withsplitrail

Splitrail is a fast, cross-platform, real-time token usage tracker and cost monitor for: Gemini CLI (and Qwen Code) Claude Code Codex CLI Cline / Roo Code / Zoo Code / Kilo Code (VS Code extension + CLI) GitHub Copilot (VS Code) GitHub Copilot CLI OpenCode Pi

Get the whole plugin
Stats
216
Stars
23
Forks
Active
Maintenance
Rust
Language
MIT
License
8d ago
Last commit
1y ago
Created

Repo: Piebald-AI/splitrail