#5122: Faster conversion between Rational and Double/Float
----------------------------------+-----------------------------------------
    Reporter:  daniel.is.fischer  |       Owner:                         
        Type:  task               |      Status:  new                    
    Priority:  normal             |   Component:  libraries (other)      
     Version:  7.0.3              |    Keywords:  fromRational toRational
    Testcase:                     |   Blockedby:                         
          Os:  Unknown/Multiple   |    Blocking:                         
Architecture:  Unknown/Multiple   |     Failure:  None/Unknown           
----------------------------------+-----------------------------------------
 The proposal for the new implementation of `fromRational` and `toRational`
 was discussed (very briefly)
 [http://haskell.org/pipermail/libraries/2011-March/016144.html here].
 Supported by Simon Peyton Jones and (off list) Jason Dagit. No dissent.

 The old implementation of `toRational` and `fromRational` for `Double` and
 `Float` was extremely slow. Exploiting the representation of the involved
 types allows an order of magnitude speedup. In particular a fast base-2
 logarithm is needed, this has to be implemented in the integer-gmp resp.
 integer-simple packages, therefore three patches are needed, for base and
 each of the integer packages.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5122>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to