# Performance Code Size

> Use Jeff Dean and Sanjay Ghemawat's canonical code-size guidance. Use when instruction-cache pressure, excessive inlining, template expansion, or repeated container operations may increase binary size or degrade performance.

- Skill: `boshjerns/performance-code-size` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add boshjerns/performance-code-size`
- Raw SKILL.md: https://api.skillmd.com/api/skills/boshjerns/performance-code-size/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-code-size

---


# Code size considerations

Read the exact current source section before applying it:

```bash
python3 ~/.codex/skills/performance-hints/scripts/fetch_section.py code-size-considerations --output text
```

Canonical section: [Code size considerations](https://abseil.io/fast/hints#code-size-considerations)

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:
- Trim commonly inlined code
- Inline with care
- Reduce template instantiations
- Reduce container operations


