Computer Programming Software Terms, Glossary and Dictionary

Peephole Optimization

Peephole optimization is a kind of optimization performed over a very small set of instructions in a segment of generated code. The set is called a "peephole" or a "window". This kind of optimization makes certain assumptions about the efficiency of instructions. Modern computer architectures typically allow for many hundreds of different kinds of peephole optimizations, and it is therefore often appropriate for compiler programmers to implement them using a pattern matching algorithm. 



Related Terms:

Peephole Optimization