ripwire-opt-remarks

Featured

Triage clang optimization remarks (-Rpass, -Rpass-missed, opt-record YAML) while editing ripwire's OWN C++: 'loop not vectorized', 'will not be inlined' — worth a diff, or is LTO/PGO the real fix? Contributor-only: about compiling this tool, never about running it.

AI & Automation 1,888 stars 112 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Triaging clang optimization remarks in this repo > Nearest neighbours: > • A measured slow operation, any codebase → **ripwire-perf-target**. Do that FIRST; remarks are the > second question, not the first. > • Maintenance risk / complexity in a subsystem → **ripwire-fresh-eyes**. Different axis entirely. Full record of the pass this skill came from, with every number: **`docs/OPTREMARKS.md`**. ## The one rule **A remark is an observation, not a defect.** Clang is reporting a decision, usually the right one. The pass that produced this skill read ~1.1 M remarks over `src/`. **Zero of them justified a source edit.** Two justified a BUILD change (LTO, then PGO), and the best-looking source-level candidate was implemented, verified to do exactly what the remark asked, measured, and reverted. Budget your attention accordingly: on this codebase, the answer to a remark is far more often a compiler flag than a diff. ## Step 0 — profile first, or you will optimize a millisecond ```bash cmake -S . -B build_prof -DRIPWIRE_PROFILE=ON && cmake --build build_prof -j 6 ./build_prof/ripwire . --no-cache 2>&1 >/dev/null | sed -n '/hottest scopes/,/PROF_TSV/p' ``` On this codebase the answer is stable and counterintuitive: **PageRank is ~1 ms** of a ~2.7 s cold CPU profile, the build-model sorts are ~1.7 ms, and ~29% sits in two phases now living in `src/ingest_sidecap.h` (`captureTagsFacts`, `captureSideFacts`) that spend it calling tree-sitter. So a remark in `src/pagerank.cpp`, ...

Details

Author
redhat-et
Repository
redhat-et/ripwire
Created
1 months ago
Last Updated
today
Language
C++
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

ripwire-fresh-eyes

Maintenance risk in code you did NOT write — inheriting a module, planning a refactor, a suspected god object, 'what's gnarly / where's the rot / safe to touch?': hotspots, dead or inactive code, switches/defaults (--flags), clones, a function's real shape, bus factor, co-change. Naming the fix or judging YOUR new code → quality-bar. A single-lens question is a single call.

1,888 Updated today
redhat-et
AI & Automation Featured

ripwire-perf-target

A MEASURED performance problem: start from a benchmark, flame graph, perf sample or profiler run, locate the hot symbol the profile names, test structural hypotheses (memory-bound → cache-line data layout). Static metrics are change-risk signals, not runtime heat. Inspect only the symbols the profile names.

1,888 Updated today
redhat-et
AI & Automation Featured

ripwire-efficient

A token + accuracy DISCIPLINE for ANY read, not a moment: map before you open files. Reach for it the instant you catch yourself about to open more than ~2 files to figure something out — anywhere in a task. Also the moment you catch yourself typing "let me search the codebase", "let me read that file", or "let me look at a few files first": that sentence IS the trigger. File reads dominate an agent's token cost, and less context is measurably MORE accurate, not just cheaper; a small ranked map beats a fan-out of whole-file reads on both. Code-repair accuracy fell 29% → 3% as context grew 32K → 256K tokens (LongCodeBench), so "read a few more files to be safe" is the instinct this replaces, not a safe default. The reflex is one line: run the cheapest verb that answers the question, then read only the 2-3 files it ranks highest. Fires ALONGSIDE the moment skills (orient, navigate, change-check…), never instead of them. Backed by ripwire (deterministic, on PATH).

1,888 Updated today
redhat-et