[GHC] #3629: Code compiled WITHOUT profiling many times slower than compiled WITH profiling on

View: New views
3 Messages — Rating Filter:   Alert me  

[GHC] #3629: Code compiled WITHOUT profiling many times slower than compiled WITH profiling on

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#3629: Code compiled WITHOUT profiling many times slower than compiled WITH
profiling on
-----------------------------+----------------------------------------------
Reporter:  gchrupala         |          Owner:                  
    Type:  bug               |         Status:  new            
Priority:  normal            |      Component:  Compiler        
 Version:  6.13              |       Severity:  major          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 I have a program which runs extremely slow when I compile it with
 profiling disabled. It only becomes usable when compiled with profiling
 options on (-prof -auto-all).

 I reproduced it with GHC 6.10, 6.12 and 6.13.

 The source is attached.

 I compiled and ran like this:

 {{{
 ghc-6.13.20091027 --make -O2 runST.hs -fforce-recomp
 time ./runST > /dev/null
 real    5m9.670s
 user    5m7.627s
 sys     0m0.468s

 ghc-6.13.20091027 --make -O2 runST.hs -fforce-recomp -prof -auto-all
 real    0m39.544s
 user    0m39.050s
 sys     0m0.148s
 }}}

 In the meantime, is there is a workaround other than compiling with
 profiling options on? I would prefer to modify the source rather than ask
 users to install profiling libraries and mess with compiler options.

 Best,

 --
 Grzegorz Chrupala

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3629>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@...
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: [GHC] #3629: Code compiled WITHOUT profiling many times slower than compiled WITH profiling on

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#3629: Code compiled WITHOUT profiling many times slower than compiled WITH
profiling on
---------------------------------+------------------------------------------
    Reporter:  gchrupala         |        Owner:                  
        Type:  bug               |       Status:  new            
    Priority:  normal            |    Milestone:  6.12 branch    
   Component:  Compiler          |      Version:  6.13            
    Severity:  major             |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown        
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown
  * milestone:  => 6.12 branch

Comment:

 Thanks for the report. There's 256k of code there; if you are able to boil
 it down to a smaller testcase then that would make it easier to
 investigate what's going on.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3629#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@...
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: [GHC] #3629: Code compiled WITHOUT profiling many times slower than compiled WITH profiling on

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#3629: Code compiled WITHOUT profiling many times slower than compiled WITH
profiling on
---------------------------------+------------------------------------------
    Reporter:  gchrupala         |        Owner:                  
        Type:  bug               |       Status:  new            
    Priority:  normal            |    Milestone:  6.12 branch    
   Component:  Compiler          |      Version:  6.13            
    Severity:  major             |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown        
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by gchrupala):

 Actually most of those bytes is a data file, but sure, I'll see if I can
 reduce the code more.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3629#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@...
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs