Sciweavers

PADL
2009
Springer

Recycle Your Arrays!

14 years 4 months ago
Recycle Your Arrays!
Abstract. Purely functional arrays are notoriously difficult to implement and use efficiently due to the absence of destructive updates and the resultant frequent copying. Deforestation frameworks such as stream fusion achieve signficant improvements here but fail for a number of important operations which can nevertheless benefit from elimination of temporaries. To mitigate this problem, we extend stream fusion with support for in-place execution of array operations. This optimisation, which we call recycling, is easy to implement and can significantly reduce array allocation and copying in purely functional array algorithms. Key words: Deforestation, Optimisation, Array Programming, Functional Programming
Roman Leshchinskiy
Added 22 Nov 2009
Updated 22 Nov 2009
Type Conference
Year 2009
Where PADL
Authors Roman Leshchinskiy
Comments (0)