Re: [Haskell-cafe] Program with profiling runs faster than without

2009-07-14 Thread Grigory Sarnitskiy
14.07.09, 12:37, Grigory Sarnitskiy sargrig...@ya.ru: Hello! I can't understand why the following happens. ghc --make -fforce-recomp -O2 -fexcess-precision -fvia-C -optc-O2 Run.lhs -o Run -prof -auto-all and time ./Run TestSim seems to be much faster (I got ~4 times faster indeed) than

Re: [Haskell-cafe] Program with profiling runs faster than without

2009-07-14 Thread Malcolm Wallace
On 14 Jul 2009, at 11:09, Grigory Sarnitskiy wrote: I think it is quite strange to the profiled version to run faster I'm really interested how to obtain the same speed withput profiling compilation. This is only a guess, but maybe there is a context-qualified CAF-like value that is

Re: [Haskell-cafe] Program with profiling runs faster than without

2009-07-14 Thread Grigory Sarnitskiy
14.07.09, 15:16, Malcolm Wallace malcolm.wall...@cs.york.ac.uk: This is only a guess, but maybe there is a context-qualified CAF-like value that is being re-evaluated multiple times in the non-profiling case, but is appropriately monomorphised in the profiling case, so it is only