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