Worker/wrapper/makes it/faster
Jennifer Hackett, Graham Hutton · ACM SIGPLAN International Conference on Functional Programming (ICFP) · 2014
Much research in program optimization has focused on formal approaches to correctness: proving that the meaning of programs is preserved by the optimisation. Paradoxically, there has been comparatively little work on formal approaches to efficiency: proving that the performance of optimized programs is actually improved. This paper addresses this problem for a general-purpose optimization technique, the worker/wrapper transformation. In particular, we use the call-by-need variant of improvement theory to establish conditions under which the worker/wrapper transformation is formally guaranteed to preserve or improve the time performance of programs in lazy languages such as Haskell.
Cited by 14 works. doi:10.1145/2628136.2628142
Authors
References
- Lecture Notes in Computer Science 1205
- A Transformation System for Developing Recursive Programs
- Cambridge University Press
- QuickCheck
- QuickCheck
- Purely Functional Data Structures
- A natural semantics for lazy evaluation
- A call-by-need lambda calculus
- The nofib Benchmark Suite of Haskell Programs
- Infinite objects in type theory