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
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
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
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
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:
: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
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