Thanks for contributing. This repository prefers spec-driven, low-noise changes over broad, loosely scoped edits.
git clone https://github.com/<your-username>/cpp-high-performance-guide.git
cd cpp-high-performance-guide
./scripts/setup.sh
cmake --preset=debug
cmake --build build/debug
ctest --preset=debug./scripts/setup.sh checks the local toolchain and configures repository-managed Git hooks through .githooks/.
- Read the relevant capability specs in
openspec/specs/. - Create or update one change under
openspec/changes/<change-id>/. - Implement tasks in dependency order.
- Keep docs, specs, and code in sync.
- Run the required validation commands.
- Use
/reviewbefore merge for non-trivial work. - Archive the change after completion.
cmake --preset=debug && cmake --build build/debug && ctest --preset=debug
cmake --preset=release && cmake --build build/release && ctest --preset=release
cmake --preset=asan && cmake --build build/asan && ctest --preset=asan
cmake --preset=tsan && cmake --build build/tsan && ctest --preset=tsan
cmake --preset=ubsan && cmake --build build/ubsan && ctest --preset=ubsanThe tsan preset is standardized on Clang because it is the most reliable ThreadSanitizer path for this repository.
./scripts/format.sh
./scripts/format.sh --check
./scripts/setup-hooks.shThe repository hooks currently enforce:
- no generated build or docs artifacts in commits
- formatting checks for staged C++ files
- a debug build/test pass on push
- Keep root README files concise and entry-focused.
- Treat
docs/as the richer narrative surface. - Keep user-facing English and Chinese entry points aligned.
- Do not reintroduce GitBook / HonKit /
.kiroreferences.
- Prefer deleting or archiving stale content over preserving it in active paths.
- Keep workflow additions justified and repository-specific.
- Avoid long-lived branch sprawl; one focused branch or PR per change is preferred.
- Do not merge non-trivial structural work without review.
See:
AGENTS.mdCLAUDE.md.github/copilot-instructions.mddocs/en/contributing/ai-workflow.md