Performance API Design

Use Jeff Dean and Sanjay Ghemawat's canonical API performance guidance. Use when designing or reviewing bulk APIs, view types, caller-provided storage, precomputed arguments, or thread-compatible versus thread-safe interfaces.

boshjerns 17ed1c3 2 files · 1.1 KB Updated

File contents

API considerations

Read the exact current source section before applying it:

python3 ~/.codex/skills/performance-hints/scripts/fetch_section.py api-considerations --output text

Canonical section: API 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:

  • Bulk APIs
  • View types
  • Pre-allocated/pre-computed arguments
  • Thread-compatible vs. Thread-safe types

boshjerns/performance-hints-agent-skills/tree/main/skills/performance-api-design commit 17ed1c39e2

Frequently asked questions

npx skillmds@latest add boshjerns/performance-api-design