Glossary

Profiling

Profiling is measuring how much time and memory each part of a program consumes. It lets you find the real bottlenecks instead of guessing what to optimise. The principle: measure first, then optimise.

Types of profiling

Tools

The 80/20 rule

Typically 20% of the code accounts for 80% of execution time. The profiler shows you that 20%. More often than not, the bottleneck turns out to be SQL queries without indexes, not the application code itself.