Optimizing pattern matching

Citation
F. Le Fessant et L. Maranget, Optimizing pattern matching, ACM SIGPL N, 36(10), 2001, pp. 26-37
Citations number
22
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
36
Issue
10
Year of publication
2001
Pages
26 - 37
Database
ISI
SICI code
1523-2867(200110)36:10<26:OPM>2.0.ZU;2-V
Abstract
We present improvements to the backtracking technique of pattern-matching c ompilation. Several optimizations are introduced, such as commutation of pa tterns, use of exhaustiveness information, and control flow optimization th rough the use of labeled static exceptions and context information. These o ptimizations have been integrated in the Objective-Caml compiler. They have shown good results in increasing the speed of pattern-matching intensive p rograms, without increasing final code size.