"매 measure-then-fix-locally tactic". 매 system-wide 매 architectural improvement 의 opposite — 매 single profiler hot-spot 의 surgical fix. 매 effective when bounded, dangerous when systemic problem masked.
매 핵심
매 mechanism
매 profiler → bottleneck → patch → re-profile loop.
매 80/20 rule — 매 20% code 의 80% time 의 surgical strike.
매 vs systematic
Ad-hoc: caching one query, inlining one loop.
Systematic: index strategy, algorithm change, architecture refactor.
매 응용
Performance bug regressions (single function got slow).
// Before
for(leti=0;i<n;i++)sum+=arr[i];// After (4x unrolled)
leti=0;for(;i+3<n;i+=4){sum+=arr[i]+arr[i+1]+arr[i+2]+arr[i+3];}for(;i<n;i++)sum+=arr[i];