Factorising folds for faster functions

19Citations
Citations of this article
24Readers
Mendeley users who have this article in their library.

Abstract

The worker/wrapper transformation is a general technique for improving the performance of recursive programs by changing their types. The previous formalisation (A. Gill & G. Hutton, J. Funct. Program., vol. 19, 2009, pp. 227-251) was based upon a simple fixed-point semantics of recursion. In this paper, 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. Copyright © 2010 Cambridge University Press.

Cite

CITATION STYLE

APA

Hutton, G., Jaskelioff, M., & Gill, A. (2010). Factorising folds for faster functions. Journal of Functional Programming, 20(3–4), 353–373. https://doi.org/10.1017/S0956796810000122

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free