dotfiles
bugabingas dorkfiles
owned by admin
pi/agent/skills/optimize/references/config-build.md
RawRendered preview
Config / Build
build time, dependency bloat, compilation overhead.
Measure
- build profiling → per-phase time (compile, link, test)
- dependency analysis → tree size, transitive deps
- compiler benchmarking → optimization levels vs impact
- metrics → total build, incremental build, dep count/size
Optimize
- parallel builds → use all cores
- dependency reduction → audit, remove unused
- compiler optimization → tune levels, LTO, PGO where applicable
- incremental builds → cache intermediates, only changed modules
- pre-built deps → system packages or pre-compiled binaries
- pipeline optimization → parallelize independent steps
Pitfalls
- build speed matters for dev, not prod
- incremental vs full → optimize common case
- optimization trade-offs → higher opt = longer compile + larger binary
- dep removal risk → reimplementing functionality
# Config / Build
build time, dependency bloat, compilation overhead.
## Measure
- build profiling → per-phase time (compile, link, test)
- dependency analysis → tree size, transitive deps
- compiler benchmarking → optimization levels vs impact
- metrics → total build, incremental build, dep count/size
## Optimize
- parallel builds → use all cores
- dependency reduction → audit, remove unused
- compiler optimization → tune levels, LTO, PGO where applicable
- incremental builds → cache intermediates, only changed modules
- pre-built deps → system packages or pre-compiled binaries
- pipeline optimization → parallelize independent steps
## Pitfalls
- build speed matters for dev, not prod
- incremental vs full → optimize common case
- optimization trade-offs → higher opt = longer compile + larger binary
- dep removal risk → reimplementing functionality