What problem does it solve?
This Skill addresses performance bottlenecks and provides guidance on optimizing the 'stupid-db' system for faster ingestion, querying, and background processing.
Core Features & Use Cases
- Profiling: Learn how to use tools like
cargo flamegraph and criterion to identify performance hotspots in Rust code.
- Memory Optimization: Strategies for reducing memory footprint in segments, graphs, and embedding caches.
- CPU Optimization: Techniques for leveraging parallelism with Rayon and optimizing data layout for SIMD.
- I/O Optimization: Best practices for efficient segment, network, and dashboard I/O.
- Query Optimization: Strategies for improving query execution plans and latency.
- Monitoring: Key metrics to track for maintaining optimal performance.
- Use Case: When experiencing slow ingestion times, use this Skill to profile the ingestion pipeline and apply recommended optimizations to segment writing and embedding generation.
Quick Start
Use the Performance Guide skill to profile the stupid-db binary using cargo flamegraph.