Optimization in which a compiler or interpreter evaluates a constant expression (e.g. a multiplication of literals) at compile time and stores the precomputed value so the runtime avoids repeating the work.