[GHC] #2462: Data.List.sum is slower than 6.8.3

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

[GHC] #2462: Data.List.sum is slower than 6.8.3

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2462: Data.List.sum is slower than 6.8.3
-----------------------------------------+----------------------------------
    Reporter:  simonmar                  |       Owner:        
        Type:  run-time performance bug  |      Status:  new    
    Priority:  high                      |   Milestone:  6.10.1
   Component:  Compiler                  |     Version:  6.8.3  
    Severity:  normal                    |    Keywords:        
  Difficulty:  Unknown                   |    Testcase:        
Architecture:  Unknown                   |          Os:  Unknown
-----------------------------------------+----------------------------------
 {{{
 main = print (sum [1..100000000::Int])
 }}}

 with 6.8.3:
 {{{
   MUT   time    1.76s  (  1.79s elapsed)
 }}}

 with HEAD (22/7/08)

 {{{
   MUT   time    1.97s  (  1.99s elapsed)
 }}}

 complete guess: sum has been mis-optimised by SAT?

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2462>
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] #2462: Data.List.sum is slower than 6.8.3

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2462: Data.List.sum is slower than 6.8.3
--------------------------------------+-------------------------------------
 Reporter:  simonmar                  |          Owner:  simonpj
     Type:  run-time performance bug  |         Status:  new    
 Priority:  high                      |      Milestone:  6.10.1
Component:  Compiler                  |        Version:  6.8.3  
 Severity:  normal                    |     Resolution:        
 Keywords:                            |     Difficulty:  Unknown
 Testcase:                            |   Architecture:  Unknown
       Os:  Unknown                   |  
--------------------------------------+-------------------------------------
Changes (by simonpj):

  * owner:  => simonpj

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2462#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] #2462: Data.List.sum is slower than 6.8.3

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2462: Data.List.sum is slower than 6.8.3
--------------------------------------+-------------------------------------
 Reporter:  simonmar                  |          Owner:  simonpj
     Type:  run-time performance bug  |         Status:  closed
 Priority:  high                      |      Milestone:  6.10.1
Component:  Compiler                  |        Version:  6.8.3  
 Severity:  normal                    |     Resolution:  invalid
 Keywords:                            |     Difficulty:  Unknown
 Testcase:                            |   Architecture:  Unknown
       Os:  Unknown                   |  
--------------------------------------+-------------------------------------
Changes (by simonpj):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 I can't reproduce this.  I compiled
 {{{
 module Main( main ) where
 main = print (sum [1..100000000::Int])
 }}}
 with -O and -O2 with the HEAD and 6.8.3.  Results are essentially
 identical.

 I'll close this, but if anyone else can reproduce it, please re-open.
 {{{
                    Allocs       Runtime(user)
 ghc-HEAD    -O     8.031M       1.82s
 ghc-HEAD    -O2    8.031M       1.82s
 ghc-6.8.3   -O     8.031M       1.82s
 ghc-6.8.3   -O2    8.031M       1.82
 }}}
 Simon

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2462#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

Re: [GHC] #2462: Data.List.sum is slower than 6.8.3

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2462: Data.List.sum is slower than 6.8.3
--------------------------------------+-------------------------------------
 Reporter:  simonmar                  |          Owner:  simonpj
     Type:  run-time performance bug  |         Status:  reopened
 Priority:  high                      |      Milestone:  6.10.1  
Component:  Compiler                  |        Version:  6.8.3  
 Severity:  normal                    |     Resolution:          
 Keywords:                            |     Difficulty:  Unknown
 Testcase:                            |   Architecture:  Unknown
       Os:  Unknown                   |  
--------------------------------------+-------------------------------------
Changes (by simonmar):

  * status:  closed => reopened
  * resolution:  invalid =>

Comment:

 We think it's necessary to compile the definition of sum itself with -O2
 in order to reproduce this.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2462#comment:3>
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] #2462: Data.List.sum is slower than 6.8.3

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2462: Data.List.sum is slower than 6.8.3
--------------------------------------+-------------------------------------
 Reporter:  simonmar                  |          Owner:  simonpj
     Type:  run-time performance bug  |         Status:  closed
 Priority:  high                      |      Milestone:  6.10.1
Component:  Compiler                  |        Version:  6.8.3  
 Severity:  normal                    |     Resolution:  invalid
 Keywords:                            |     Difficulty:  Unknown
 Testcase:                            |   Architecture:  Unknown
       Os:  Unknown                   |  
--------------------------------------+-------------------------------------
Changes (by simonpj):

  * status:  reopened => closed
  * resolution:  => invalid

Comment:

 I did that and it's still fine. Re-open if you think otherwise!

 Simon

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2462#comment:4>
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] #2462: Data.List.sum is slower than 6.8.3

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2462: Data.List.sum is slower than 6.8.3
--------------------------------------+-------------------------------------
 Reporter:  simonmar                  |          Owner:  simonpj
     Type:  run-time performance bug  |         Status:  closed
 Priority:  high                      |      Milestone:  6.10.1
Component:  Compiler                  |        Version:  6.8.3  
 Severity:  normal                    |     Resolution:  invalid
 Keywords:                            |     Difficulty:  Unknown
 Testcase:                            |   Architecture:  Unknown
       Os:  Unknown                   |  
--------------------------------------+-------------------------------------
Comment (by simonmar):

 unreproducible for me too now.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2462#comment:5>
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
LightInTheBox - Buy quality products at wholesale price