Compile-time evaluation refers to the process where expressions and computations are evaluated by the compiler before a program is run, often to optimize performance. This approach reduces runtime overhead as certain calculations are completed ahead of time, allowing for more efficient execution of the compiled program.