> Joining these modules into *one*   
> 
>                    module Main (main) where ...
> 
> and compiling with  -O  gives  6.1 sec.
> This is the *only* situation, I found -O working.
> 
> Thus, if we set then      `Main (main,test) where' 
> 
> - just for curiosity - we return to 70 sec.


GHC 2.08 still hasn't got the specialiser back in service, and it 
makes a HUGE difference on this program.  When test isn't exported,
it gets inlined and specialised.  Same thing happens if you say INLINE test
and INLINE short, even if test is exported.  

Nice example.  Maybe we shoudl get the specialiser up again!

Simon

Reply via email to