[Haskell-cafe] Re: Optimizing spelling correction program
kamil at dworakowski.name
Tue Jun 23 16:26:43 EDT 2009
On Jun 23, 9:35 am, Bulat Ziganshin <bulat.zigans... at gmail.com> wrote:
> Hello Kamil,
> Tuesday, June 23, 2009, 11:17:43 AM, you wrote:
> >> One easy way to fix the GC time is to increase the default heap size.
> >> ./a.out +RTS -A200M
> > It does make the GC only 1.4% of run time but it increases it overall
> > by 14s.
> not surprising - you lose L2 cache locality. try to use -A size that
> is equal to your L2 cache size
I have a dual core with 3M L2 cache, but setting this value to anyting
more than 1M slows down the program.
More information about the Haskell-Cafe