# 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.

- Skill: `boshjerns/performance-cpp` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add boshjerns/performance-cpp`
- Raw SKILL.md: https://api.skillmd.com/api/skills/boshjerns/performance-cpp/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: boshjerns (https://skillmd.com/u/boshjerns)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/boshjerns/performance-cpp

---


# C++-Specific advice

Read the exact current source section before applying it:

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

Canonical section: [C++-Specific advice](https://abseil.io/fast/hints#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


