#2271: floor, ceiling, round :: Double -> Int are awesomely slow
------------------------------------------+---------------------------------
    Reporter:  dons                       |        Owner:  daniel.is.fischer
        Type:  bug                        |       Status:  patch            
    Priority:  low                        |    Milestone:  7.0.1            
   Component:  libraries/base             |      Version:  7.1              
    Keywords:  performance, math, double  |     Testcase:                   
   Blockedby:                             |   Difficulty:  Unknown          
          Os:  Unknown/Multiple           |     Blocking:                   
Architecture:  Unknown/Multiple           |      Failure:  None/Unknown     
------------------------------------------+---------------------------------

Comment(by daniel.is.fischer):

 (b) is not a very good option here. I tried it, but if you include GHC.Int
 and GHC.Word in GHC.Float, you get an import cycle
 {{{
 GHC.Int/Word < GHC.Read < GHC.Float < GHC.Int/Word
 }}}
 Could be broken with .hs-boot, of course, but I'm not too keen on that.

 So GHC.Int/Word, where the types are defined, seems the best place,
 although adding GHC.Float to their imports seems a bit strange.

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

Reply via email to