[Haskell-cafe] [Newbie] Problem with Data.Map (or something else ?)

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Mar 31 11:55:13 EDT 2008

Hello Bruno,

Monday, March 31, 2008, 7:51:43 PM, you wrote:

> I've written the following program... Which does not end in a reasonable time :(
> My algorithm seems ok to me but I see that memory consumption is gigantic...
> Is this a memory problem with Data.Map ? Or an infinite loop ? (Where ?)
> In a more general way, how can I troubleshoot these kind of problem ?

first step is to reduce n and see whether program will finish and how
memreqs depends on value of n

> main =
>     let n = 1000000

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list