[Haskell-cafe] Question about memory usage

Sebastian Fischer sebf at informatik.uni-kiel.de
Mon Aug 16 12:00:42 EDT 2010

[CC-ing café again]

On Aug 16, 2010, at 5:52 PM, Daniel Fischer wrote:

>> I am a bit concerned about the memory usage.
> Of your implementation of the matrix power algorithm?


> Making the fields of Matrix strict should help:
> data Matrix a = Matrix !a !a !a

Making all fields strict makes memory usage worse. When making only  
the first field strict, memory usage hardly differs (from the current  
implementation without strictness annotations).


Underestimating the novelty of the future is a time-honored tradition.

More information about the Haskell-Cafe mailing list