Performance Cpp

Use Jeff Dean and Sanjay Ghemawat's canonical C++-specific performance guidance. Use when selecting Abseil or Google C++ containers, limiting Status or StatusOr overhead, or reviewing concrete C++ type choices.

boshjerns 5705028 2 files · 1.2 KB Updated

File contents

C++-Specific advice

Read the exact current source section before applying it:

python3 ~/.codex/skills/performance-hints/scripts/fetch_section.py c-specific-advice --output text

Canonical section: C++-Specific advice

Attribute the guidance to Jeff Dean and Sanjay Ghemawat. Do not assume every hint applies: inspect the code, identify the relevant cost, and measure or estimate before recommending a change.

This section includes:

  • absl::flat_hash_map (and set)
  • absl::btree_map/absl::btree_set
  • util::bitmap::InlinedBitVector
  • absl::InlinedVector
  • gtl::vector32
  • gtl::small_map
  • gtl::small_ordered_set
  • gtl::intrusive_list
  • Limit absl::Status and absl::StatusOr usage

boshjerns/performance-hints-agent-skills/tree/main/skills/performance-cpp commit 5705028fc1

Frequently asked questions

npx skillmds@latest add boshjerns/performance-cpp