Optimizing Compiler Performance

Audits compiler and codegen performance.

socketdev Updated 3 repo stars

File contents

Optimizing Compiler Performance

Use only after profiling identifies generated-code cost. Record the release artifact, compiler/runtime version, target, workload, baseline, and before/after result.

  1. Read the shared compiler/codegen audit.
  2. Prefer representative PGO evidence over manually guessed branch or inlining hints.
  3. Scope LTO, target features, cold annotations, and CPU dispatch to supported targets.
  4. Compare code size, build time, startup, peak memory, and tail latency as well as the selected hot metric.
  5. Keep the change only when correctness tests and the same representative benchmark pass.

For parser layout, use optimizing-parser-performance.

socketdev/socket-btm commit 9b46376f63

Frequently asked questions

npx get-skill add socketdev/optimizing-compiler-performance