CIFASIS   20631
CENTRO INTERNACIONAL FRANCO ARGENTINO DE CIENCIAS DE LA INFORMACION Y DE SISTEMAS
Unidad Ejecutora - UE
artículos
Título:
Factorising Folds for Faster Functions
Autor/es:
GRAHAM HUTTON; MAURO JASKELIOFF; ANDY GILL
Revista:
JOURNAL OF FUNCTIONAL PROGRAMMING
Editorial:
Cambridge University Press
Referencias:
Lugar: Cambridge, Reino Unido; Año: 2010 vol. 20 p. 353 - 373
ISSN:
0956-7968
Resumen:
The worker/wrapper transformation is a general technique for improving the performance of recursive programs by changing their types. The previous formalisation (Gill & Hutton, 2009) was based upon a simple fixed point semantics of recursion. In this article we develop a more structured approach, based upon initial algebra semantics. In particular, we show how the worker/wrapper transformation can be applied to programs defined using the structured pattern of recursion captured by fold operators, and illustrate our new technique with a number of examples.