performance-lens

Evaluate algorithmic efficiency, resource usage, and concurrency in code paths.

30|1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/atomicinnovation/accelerator --skill performance-lens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-lens
Source: https://github.com/atomicinnovation/accelerator/tree/main/skills/review/lenses/performance-lens
Command: npx skills add https://github.com/atomicinnovation/accelerator --skill performance-lens

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This lens helps developers and reviewers detect where code will become a performance bottleneck by evaluating algorithmic complexity, resource and I/O usage, concurrency resource efficiency, and caching strategy so that optimizations are targeted and proportional to real-world load.

Core Features & Use Cases

  • Algorithmic and data-structure review: Assess time and space complexity, identify unnecessary iteration or repeated work, and recommend more appropriate data structures.
  • Resource and I/O analysis: Highlight inefficient memory allocation patterns, unbatched or eager I/O, connection and pool mismanagement, and opportunities for streaming or batching.
  • Concurrency and caching guidance: Evaluate lock contention, thread/worker pool sizing, unnecessary serialization of async work, and cache design to reduce contention and stampede risk.
  • Use Case: When reviewing a high-traffic API endpoint, use this lens to identify algorithmic hotspots, evaluate database and network call patterns, and produce prioritized, measurable performance fixes.

Quick Start

Use the performance-lens to review the authentication service for algorithmic hotspots, memory and I/O inefficiencies, and concurrency contention.

Frequently Asked Questions about performance-lens

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

FAQPage Schema
How do I identify code bottlenecks in a high-traffic API endpoint?

To identify code bottlenecks in a high-traffic API endpoint, evaluate algorithmic complexity, assess database and network call patterns, and analyze I/O efficiency to pinpoint hotspots. This highlights resource waste and prioritizes measurable performance fixes for real-world load.

What causes lock contention and thread pool sizing issues in concurrent code paths?

Lock contention and thread pool sizing issues in concurrent code paths stem from unnecessary serialization of async work and inefficient worker distribution. Evaluating concurrency resource efficiency reveals these bottlenecks, enabling you to reduce contention and optimize parallel processing.

How do I review algorithmic efficiency and time complexity in my code?

Review algorithmic efficiency and time complexity in your code by assessing data structures, identifying unnecessary iteration or repeated work, and calculating complexity assessments. This highlights algorithmic hotspots and recommends appropriate data structures to reduce computational overhead.

Can caching strategy evaluation reduce cache stampede risk in data pipelines?

Yes, caching strategy evaluation can reduce cache stampede risk in data pipelines by analyzing cache design to minimize contention. Reviewing concurrency and caching guidance ensures resource usage remains efficient under heavy load and prevents simultaneous cache misses.

What is the best way to find memory allocation and unbatched I/O inefficiencies in background jobs?

The best way to find memory allocation and unbatched I/O inefficiencies in background jobs is through resource and I/O analysis. This highlights inefficient memory patterns, connection pool mismanagement, and opportunities for streaming or batching to optimize performance.