Re: Program runs out of memory using GHC 7.6.3

2014-12-13 Thread Mikolaj Konarski
tt may be that GHC 7.8 optimizes the program better. Compile with -O0 and see if it runs out of memory, too. If so, you can just optimize the program by hand. I'd suggest making a heap profilie with -O0 or in GHC 7.6 and finding out where the memory goes. Of course, it's possible you've hit a comp

Re: Program runs out of memory using GHC 7.6.3

2014-12-13 Thread Matthias Fischmann
Date: Sat, 13 Dec 2014 02:06:52 -0700 > From: David Spies > To: "ghc-devs@haskell.org" > Subject: Program runs out of memory using GHC 7.6.3 > > I have a program I submitted for a Kattis problem: > https://open.kattis.com/problems/digicomp2 > But I got memory limit e

Re: Program runs out of memory using GHC 7.6.3

2014-12-13 Thread David Spies
I tried all optimization levels of 7.6.3 and it runs out of memory I tried all optimization levels of 7.8.3 and it doesn't So it must be something the compiler does even without any optimization. On Sat, Dec 13, 2014 at 3:05 AM, Mikolaj Konarski wrote: > > tt may be that GHC 7.8 optimizes the pr

Re: Program runs out of memory using GHC 7.6.3

2014-12-13 Thread David Spies
izing there. > > hope this helps, > cheers, > matthias > > > On Sat, Dec 13, 2014 at 02:06:52AM -0700, David Spies wrote: > > Date: Sat, 13 Dec 2014 02:06:52 -0700 > > From: David Spies > > To: "ghc-devs@haskell.org" > > Subject: Program runs

Re: Program runs out of memory using GHC 7.6.3

2014-12-13 Thread David Spies
Either you should find a way to >> iterate only once and accumulate all the data you need, or you should >> start optimizing there. >> >> hope this helps, >> cheers, >> matthias >> >> >> On Sat, Dec 13, 2014 at 02:06:52AM -0700, David Spies wrote:

Re: Program runs out of memory using GHC 7.6.3

2014-12-14 Thread Matthias Fischmann
:25PM -0700, David Spies wrote: > Date: Sat, 13 Dec 2014 14:10:25 -0700 > From: David Spies > To: Matthias Fischmann > Cc: "ghc-devs@haskell.org" > Subject: Re: Program runs out of memory using GHC 7.6.3 > > I think there's some confusion about makeCounts's b

Re: Program runs out of memory using GHC 7.6.3

2014-12-14 Thread David Spies
gt; Date: Sat, 13 Dec 2014 14:10:25 -0700 > > From: David Spies > > To: Matthias Fischmann > > Cc: "ghc-devs@haskell.org" > > Subject: Re: Program runs out of memory using GHC 7.6.3 > > > > I think there's some confusion about makeCounts's beh