m10-performance/SKILL.md
Mastering C++ Performance. Triggers: cache locality, heap allocation, inlining, SIMD, standard layout, string_view, reserve, pmr.
npx skillsauth add 13eholder/modern-cpp-skills m10-performanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Where is the data?
std::vector.std::list, std::map.Count the Allocations.
reserve).Measure, Don't Guess.
Data Layout.
struct padding? Reorder members largest to smallest.| Technique | Benefit | Implementation |
| ----------------- | -------------- | -------------------------------------- |
| reserve() | Avoid reallocs | Call before loop. |
| string_view | No copy string | Params. |
| std::vector | Cache locality | Default container. |
| PMR | Custom alloc | std::pmr::monotonic_buffer_resource. |
tools
Common C++ Anti-Patterns. Triggers: global variables, new/delete, C-style cast, macros, void*.
data-ai
C++ Mental Models: Pointer vs Reference, Initialization, Undefined Behavior.
data-ai
Mastering C++ Domain Errors: Exception Hierarchies, System Errors, and Expected.
data-ai
Mastering C++ Lifecycle: RAII, Destructors, Static Initialization, Rule of 5.