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 Updated 1 repo stars
The Performance Hints page on the Abseil website, showing the title, authors, update date, and section navigation

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 commit 5705028fc1

Frequently asked questions

npx get-skill add boshjerns/performance-cpp