Optimizing pattern matching
Fabrice Le Fessant, Luc Maranget · ACM SIGPLAN International Conference on Functional Programming (ICFP) · 2001
We present improvements to the backtracking technique of pattern-matching compilation. Several optimizations are introduced, such as commutation of patterns, use of exhaustiveness information, and control flow optimization through the use of labeled static exceptions and context information. These optimizations have been integrated in the Objective-Caml compiler. They have shown good results in increasing the speed of pattern-matching intensive programs, without increasing final code size.
Cited by 82 works. doi:10.1145/507635.507641
Authors
References
- Lecture Notes in Computer Science 1205
- Constant propagation with conditional branches
- Compiling pattern matching
- Constant propagation with conditional branches
- Compiling a functional language
- Standard ML: Report ECS-LFCS-86-2
- Partial dead code elimination
- Interprocedural conditional branch elimination
- Producing good code for the case statement
- A compact, machine-independent peephole optimizer