[Haskell-cafe] idea for avoiding temporaries

David Roundy droundy at darcs.net
Fri Mar 9 11:27:05 EST 2007


On Fri, Mar 09, 2007 at 04:02:04PM -0000, Claus Reinke wrote:
> but if one does whole-array updates, there isn't much to be gained by
> avoiding intermediate copies, is there? whether you fill a new memory
> area, or overwrite an old one, you still have to loop through the whole
> thing, writing and reading.

I would gain a 20% reduction in memory use, which could come out to a few
gigabytes for large problems.  That's worth some degree of effort.
Actually, it'd be a bit less than 20%, but for large problems it would
approach 20%.
-- 
David Roundy
Department of Physics
Oregon State University


More information about the Haskell-Cafe mailing list